0% found this document useful (0 votes)
17 views

Java Assignment2 & 3

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Java Assignment2 & 3

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Java Programming Assignment -II(Date of submission-9.5.

24)

1. Write Steps to Create user-defined package.


2. Write the General rules for Defining an Interface.
3. Write the General rules for using Try-catch block & finally Block
4. Define multithreading?Why it is important?
5. What are the advantages of multithreading?
6. Describe the purpose and working of sleep() method.
7. When should we interrupt a thread?
8. What’s the purpose of the join() method?

Java Programming Assignment -III(Date of submission- 3.6.24)


1. Define Synchronization?Explain the uses of the Synchronization.
2. Explain the differences between applets and swings.
3. Which classes can an applet extend?
4. Explain the different stages in the life cycle of an applet. OR List and discuss
Applet initialization and termination methods.
5. Explain various components of the swing package
6. Describe the different types of swing buttons.

Content beyond Syllabus

1. Develop an applet to create a label, a text field and 4 check boxes with the caption
"red", "green", "blue" and "yellow".
2. . Write a program using an applet which will print "key pressed" on the status
window when you press the key, "key released" on the status window when you
release the key and when you type the characters it should print "Hello" at coordinates
(50, 50) on Applet.
3. Write a. Java Applet that sets the background color to cyan and foreground color
to red and outputs a string message "A simple Applet”.
4. Write an applet program to display the message “VTU BELGAUM”. Set the
background color to cyan and foreground color to red.
5. Create a swing application having two buttons named alpha and beta. When either
of buttons pressed, it should display “alpha pressed” and “beta pressed” respectively.
Note: All the 3 assignments should be submit before 31.5.24

You might also like