Term Work (Part-II)
PMC 401 – (Java)
1. Create
a Thread program to print the table of a number using two threads in
synchronized way (use the concept of synchronized method).
2. Create
a Thread program to perform the deposit and with drawl operation on a particular
bank account using separate threads (use the concept of inter thread
communication).
3. Write
a program to search files having extension .java
from a directory location passed at command line.
4. Write
a program to count total number of lines, words and vowels from a text file.
5. Write
a Program to copy content of one file into another. Pass source and destination
file from command line.
6. Create
a class Employee with variables firstName, lastName, empId, and emailId. Create
another class inside main method instantiates an Employee object and serializes
it to a file after serialization de-serialize it. (use the concept of
serialization and deserialization)
7. Write
a program using Adapter class to change the colour of a rectangle when user
click within rectangle range.
8. Write a GUI program to convert temperature
(Celsius to Fahrenheit and vice versa) with labels, text fields and buttons.
User will enter temperature in Celsius in first text box, another
text box will display the temperature in Fahrenheit in another text box on
button click.
9. Draw the following image
![]() |
10. Write a GUI program to register a student. On
click of submit button show user the selected values. Registration should have
following control with checks:
·
Text field for Name (should not contain any
integer value)
·
Text field for Contact Number (should not
contain any character)
·
Text field for Email Id (should be in the form
String@String.com)
·
List for Course selection (MCA/MTech/MBA)
·
Radio Button for Gender (male/female)
·
Check boxes for subject selection (provide six
subjects out of which student will select four subjects)
11. Write
a GUI swing based program to design a menu (containing items (Pizza, Drink) and
sub items list (Pizza types, Drink types)). User will select the items from
menu, sub items will populate automatically from menu list. On click of submit
button prompt total payable amount to user.
12. Write a program to create a Quiz application
with 5 questions using Card Layout.
13. Write
a program to create a Connection Oriented communication (TCP socket) between
client and server where client sends the radius to the server, server
calculates the area and sends it back to the client.
14. Write a simple program (addition of two
numbers) to show the concept of RMI.
15. Write a menu driven program to store, delete
and display the records of employee in ArrayList.
