BHAGWAN PARSHURAM INSTITUTE OF TECHNOLOGY
Department of Computer Science & Engineering
ASSIGNMENT – 3 (Covering CO-3)
Subject Name: Programming in Java Maximum Marks: 25
Subject Code: CIC-212 Date of Submission: 15th April 2025
Faculty Name: Dr. Bhawna Suri
Max. B.T
Q.No. Questions Verb Used
Marks Level
Build a calculator as shown in the image.
Input – mdgc
Output - 10
Similarly workout for other numeric
values
1 5 6 Build
Explain the importance of Event handling in Java. What is the difference
What ,
between adapter class and interface class, explain with the help of an
2 5 1,3 & 6 Explain &
example. Develop the program to show the use of Border Layout with
Develop
various components.
What is thread, explain its lifecycle and different ways of creating a thread.
Build a thread in both ways and print the output-
Name of thread 't': Thread-0 What,
3 5 1,3 & 6
New name of thread 't': <Your Name> Explain &
Thread is running.
Develop a java multithreaded program, using the synchronized keyword
appropriately to ensure that the program prints the output in the following
order in multithreading:
-----------------OUTPUT-------------------
5
4 10 5 6 Develop
15
100
200
300
-------------------------------------------------
Develop a GUI interface using Menubar showing the Menu of following
items print the selection in a textfield.
Menubar- > B.Tech SBA Year
CSE BBA I
CSE-DS MBA II
5 AI-DS III 5 6 Develop
IT IV
ECE
EEE