Part – I (Very Short Answer Questions)
Attempt all questions. Each question carries 2 marks. Maximum 40 words per answer.
10 questions – 2 marks each = 20 marks
1. What is the purpose of the main method in a Java program?
2. Define encapsulation.
3. Name two access specifiers used in Java.
4. What is the use of the break statement?
5. Write the syntax of the switch statement in Java.
6. What is polymorphism in Java?
7. Define thread.
8. What is the use of finally block in exception handling?
9. Name any two layout managers in Java.
10.What is the full form of JDBC?
Part – II (Short Answer Questions)
Attempt all questions. Each question carries 4 marks. Maximum 80 words per answer.
5 questions – 4 marks each = 20 marks
11.What is the role of Java Virtual Machine in program execution?
12.Differentiate between method overloading and method overriding.
13.What are wrapper classes? Give examples.
14.Explain the concept of synchronization in Java threads.
15.Write short notes on Servlets and JAR files.
Part – III (Long Answer Questions)
Attempt all questions. Each question carries 12 marks. Each question has internal choice. 5
questions = 60 marks
16.(a) Explain various data types and type casting in Java with suitable examples.
OR
(b) Describe the features of Java that make it platform-independent and secure.
17.(a) Write a Java program to demonstrate the use of if-else-if ladder and switch
statement.
OR
(b) Explain constructors and their types in Java with a sample program.
18.(a) Explain different types of inheritance in Java. Write a program demonstrating
multilevel inheritance.
OR
(b) What is multithreading? Write a program to create multiple threads using Thread
class.
19.(a) Explain exception types in Java and how they are handled using try-catch.
OR
(b) Describe any four AWT components with their uses.
20.(a) Write short notes on:
(i) Java Beans
(ii) JDBC
OR
(b) What is socket programming? Explain the concept of client-server communication
using Java sockets.