Java Exam Practice Questions
(Advanced Lengthy)
UNIT 1: Programming in Java
10 Marks Questions:
1. Explain Java Architecture in detail including JVM, JRE, JDK, Class Loader, Bytecode,
Interpreter, execution process, and advantages with diagram.
2. Write a Java program demonstrating inheritance and polymorphism with overriding and
use of super keyword. Explain execution.
3. Explain exception handling including try, catch, finally, throw, throws, propagation,
checked vs unchecked, and write custom exception program.
4. Explain multithreading with thread life cycle, creation methods, synchronization, and
program example.
5. Explain file handling including byte/character streams, RandomAccessFile, serialization
with program.
5 Marks Questions:
1. Explain Java buzzwords (any five).
2. Explain Path and ClassPath with examples.
3. Differentiate overloading vs overriding with examples.
4. Explain interface vs abstract class.
5. Explain final and static keywords.
UNIT 2: Swing
10 Marks:
1. Explain AWT vs Swing with hierarchy, advantages, limitations.
2. Design Student Registration Form with components and event handling.
3. Explain layout managers with comparison.
5 Marks:
1. Containers and components
2. Applet life cycle
3. Menus in Swing
UNIT 3: Event Handling
10 Marks:
1. Explain event delegation model with program.
5 Marks:
1. Types of events
2. Adapter classes
UNIT 4: JDBC
10 Marks:
1. Explain JDBC architecture and drivers.
2. Write CRUD program using JDBC.
3. Explain transactions.
5 Marks:
1. Statement vs PreparedStatement
2. ResultSet
UNIT 5: Networking
10 Marks:
1. Explain TCP vs UDP.
2. Write client-server socket program.
3. Explain URL and URLConnection.
5 Marks:
1. IP addressing
2. Socket programming
UNIT 6: JavaFX
10 Marks:
1. Explain JavaFX vs Swing.
2. Write JavaFX form program.
5 Marks:
1. Stage and Scene
2. Controls
UNIT 7: Servlet & JSP
10 Marks:
1. Explain servlet life cycle.
2. Explain JSP components.
3. Compare Servlet vs JSP.
5 Marks:
1. Session tracking
2. GET vs POST
UNIT 8: RMI & CORBA
10 Marks:
1. Explain RMI architecture.
2. Explain CORBA.
5 Marks:
1. RMI vs CORBA
Mixed:
10 Marks:
1. GUI + JDBC application
2. Multithreading + file handling
5 Marks:
1. Thread vs Process
2. Checked vs Unchecked Exception
3. Interface vs Abstract class