Assignment
Unit –II
1. Differentiate abstract class and interface.
2. Explain final variables and final methods, with program
3. Define Interface and explain with proper example
4. What Is abstract class and Methods, with Program
5. Write a Java program demonstrating abstract class and method overriding.
6. Write a Java program demonstrating method overriding and use of super
7. Explain packages in Java and write steps to create and access a package
8. State use of ‘Super’ keyword, with eample
9. Explain Method Overriding with example
10. Expain properties of Constructor, and explain Constructor Overloading
11. What is Multiple Inheritance ? how to achieve multiple inheritance with suitable Program
12. List any four Build-in Package from java APi along with their use.
13. Difference between class and Interface
14. Difference between Interface and Abstract Class
15. Design a package contain class, Which define area () method in it, import that define
Package in another class and Calculate area of a Rectangle for given length and breath.
Assignment
Unit –III
1. .Define concept of Exception?
2. Enlist any four-compile time error.
3. Define thread. Mention two ways to create thread.
4. Write steps to create a thread using Runnable interface.
5. . Describe thread priority.
6. Define the term: i. Thread ii. Exception
7. Explain the following clause in exception handling.
a. try b) catch c) throw d) finally
8. Describe the life cycle of thread with suitable example
9. . Write a program to create user defined exception in java.
10. Write a java program in which Thread A will display the even number between 50 and
thread B will display the odd Kers between 1 to 50. After 3 thread A should go to sleep
for 500ms..
11. Define an Exception called "NotMatchException" that is thrown when a password is not
equal to "MSBTE". Write the program.
Assignment
Unit –IV
1. What is frame in swing. how to create frame.
2. What is panel? How to create with example.
3. Name Different Layout manager.
4. Define Container list any 4 type of container
5. Name the package which is used to design AWT centre COM
6. List the different types of Listeners.
7. List method of KeyListener with syntax.
8. Name method of MouseListener with syntax
9. Name method of MouseMotionListener with syntax
10. Name method of ItemListener, ActionListener with syntax
11. Name Method Of TextLisener with Synatx
12. Name Package which is used to design AWT Control and Swing
13. Define Event, source and Listener
14. Design an application to create from using Textfield, textarea, Button and Lable.
15. WAP to create three Button with Caption, OK, RESET and Cancel
16. Explain feature of swing.
17. Write a program to demonstrate the use of keyEvent when key is pressed and display
Assignment
Unit –V
1. What is networking? waRA
2. Write the use of getByName() and getAllByName() method
3. Define Socket and ServerSocket class.
4. Write the function of Connect(), Bind()
5. Name the package in which URL class is defined
6. Write the use of openConnection() method of URLConnection class.
7. Write a program using URL class to retrieve the host, protocol, port and file
of URL
8. Develop a program using InetAddress class to retrieve IP address of
computerwhen hostname is entered by the user.
9. Write the difference between SeverSocket and Datagrampackets.