1. Enlist any four compile-time errors.
(2M)
2. Explain exception handling mechanism w.r.t. try, catch, throw and finally. (4M)
3. Define an exception called 'No Match Exception' that is thrown when the
password accepted is not equal to "MSBTE". Write the program. (6M)
4. Differentiate between starting thread with run() method and start() method. (2M)
5. Define thread. Draw life cycle of Thread. (4M)
6. Explain errors and its types in detail. Explain thread methods to set and get
priority. (6M)
Unit 4: Event Handling & AWT
1. What is event? How to handle it?
2. What is adapter classes? Explain in detail.
3. Describe following listeners interface with example:
o i) ItemListener
o ii) KeyListener
o iii) TextListener
o iv) MouseMotionListener
o v) WindowListener
4. What are different AWT controls?
5. List out different layouts and explain any one in details.
6. Write a program to create a menu bar with various menu items and sub-menu
items. Also create a checkable menu item. On clicking a menu item, display a
suitable Dialog box.
7. Write a Java program in which thread A will display the even numbers between 1
to 50 and thread B will display the odd numbers between 1 to 50. After 3
iterations, thread goes to sleep for 500 ms. (4M)
8. Explain the use of throw and throws. (2M)
Unit 5 & 6: Network Basics & JDBC
1. What is protocol? List out at least two protocols.
2. Explain with suitable diagram the HTTP communication between web server and
web client.
3. Explain TCP/IP client sockets with suitable example.
4. Explain datagram packets in details.
5. What is JDBC?
6. With the help of diagram describe architecture of JDBC.
7. What is the difference between a connection and statement?
8. Compare JDBC and ODBC.
9. Explain DriverManager class in detail.
10. [Swing] What is Swing?
11. [Swing] With the help of diagram describe following Swing components:
o i) JComboBox
o ii) JCheckBox
o iii) JProgressBar