0% found this document useful (0 votes)
1 views1 page

Java IV SemAssignment

The document outlines the instructions and practical exercises for a JAVA lab assignment for BCA IV Semester students at University Commerce College, due by May 31, 2026. Students are required to complete various programming tasks, including finding sums, maximum values, GCD, LCM, and implementing classes and multithreading. Clear presentation and adherence to submission guidelines are emphasized.

Uploaded by

hv6083077
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views1 page

Java IV SemAssignment

The document outlines the instructions and practical exercises for a JAVA lab assignment for BCA IV Semester students at University Commerce College, due by May 31, 2026. Students are required to complete various programming tasks, including finding sums, maximum values, GCD, LCM, and implementing classes and multithreading. Clear presentation and adherence to submission guidelines are emphasized.

Uploaded by

hv6083077
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

University Commerce College

BCA IV Semester
Home Assignment, (January to June 2026)
Subject: JAVA Lab Assignments

Instructions for Home Assignment

1. Write the assignment neatly and clearly. Use an A4 size notebook or assignment sheets.
2. Mention your name, class, roll number, and subject on the first page.
3. Submit the assignment before the due date, 31-05-2026.
4. Complete all questions in your own handwriting.
5. Late submissions may not be accepted.

Solve the following practical exercises:

1) Write a JAVA program to find sum of given two numbers from user.
2) Write a JAVA program to find max value in given four numbers from user.
3) Write a JAVA program to find second max value in given four numbers from user.
4) Write a JAVA program to find GCD/HCF in given two numbers from user.
5) Write a JAVA program to find LCM in given two numbers from user.
6) Write a JAVA program to check that given value is prime or not input from user.
7) Write a JAVA program to print N natural numbers. N input from user.
8) Write a JAVA program to print N fibbonacci series numbers. N input from user.
9) Write a JAVA program to print N prime numbers. N input from user.
10) Write a JAVA program to Sort an Array. Array values input from useres.
11) Write a JAVA program to Search a value in an Array. Array values input from user.
12) Write a program that takes a String from the user and print it in reverse.
13) Write a JAVA program to search a given word in given Sentence. Input from user.
14) Write a JAVA program to print data from given file. File name input from user.
15) Write a JAVA program to save data in given file. File name and data input from user.
16) Write a JAVA program to create a Stack Class, with push and pop functions.
17) Create an Applet to draw hollow circle on mouse click (on clicked position).
18) Write a program to create a simple calculator.
19) Write a program to create a class named Vehicle having protected instance variables regnNumber,
speed, color, ownerName and a method showData ( ) to show “This is a vehicle class”. Inherit the Vehicle
class into subclasses named Bus and Car having individual private instance variables routeNumber in Bus
and manufacturerName in Car and both of them having showData ( ) method showing all details of Bus
and Car respectively with content of the super class’s showData ( ) method.
20) Write multithreaded program that continuously prints the strings “ping” and “PONG” in the console
at intervals of one second. Use two threads one for “ping” and another for “PONG”.

You might also like