Subject: Java Programming
MODULE 1 – Introduction to Java (Marks: 5)
Short Questions
1. What is Java? Mention any four features of Java.
2. What is Platform Independence in Java?
3. What is JVM?
4. What is JDK and JRE?
5. What is PATH variable?
6. What is CLASSPATH?
Long Questions
1. Explain the architecture of JVM with a neat diagram.
2. Write and explain a simple Java program.
3. Describe the role of PATH and CLASSPATH with examples.
4. Discuss key features of Java (OOP, Robust, Secure, Portable).
MODULE 2 – Basics of Java Programming (Marks: 10)
Short Questions
1. List all primitive data types in Java.
2. What are variables?
3. What is the difference between == and .equals()?
4. What is a static variable?
5. What is a final variable?
6. What is BigInteger? Why is it used?
Long Questions
1. Explain data types and variables in Java with examples.
2. Describe control structures:
a) if/else
b) switch
c) loops
3. Explain static and final variables. How are they initialized?
4. Explain BigInteger class with examples.
5. Describe operators in Java with proper classification.
MODULE 3 – OOP Concepts (Marks: 8)
Short Questions
1. What are access modifiers?
2. Define encapsulation.
3. What is abstraction?
4. What is a constructor?
5. What is constructor chaining?
Long Questions
1. Explain classes, objects, methods, and initialization types.
2. What are access modifiers in Java? Explain with examples.
3. Explain constructor overloading and constructor chaining.
4. Describe encapsulation and abstraction with examples.
MODULE 4 – Inheritance and Polymorphism (Marks: 10)
Short Questions
1. What is inheritance?
2. Define method overloading.
3. What is method overriding?
4. What is polymorphism?
5. What are the restrictions on method overriding?
Long Questions
1. Explain inheritance and its types in Java.
2. Differentiate between method overloading and method overriding.
3. Explain runtime and compile-time polymorphism.
4. Describe rules/restrictions of method overriding.
5. Explain super keyword and its usage in inheritance.
MODULE 5 – Arrays and Strings (Marks: 8)
Short Questions
1. What is an array?
2. What is a 2D array?
3. What is the Arrays class?
4. Difference between String, StringBuffer, StringBuilder.
5. What is immutability?
Long Questions
1. Explain single and multidimensional arrays with examples.
2. Explain use of Arrays class for:
a) printing
b) sorting
c) searching
3. Explain string handling in Java.
4. Describe StringBuffer and StringBuilder with examples.
MODULE 6 – Interfaces & Abstract Classes (Marks: 7)
Short Questions
1. What is an interface?
2. What is an abstract class?
3. What is multiple inheritance?
4. Can interfaces have default methods?
Long Questions
1. Difference between interface and abstract class.
2. Explain how Java supports multiple inheritance using interfaces.
3. Explain abstraction with examples.
4. Explain the use of interfaces in real-life applications.
MODULE 7 – Exception Handling (Marks: 8)
Short Questions
1. What is an exception?
2. Difference between checked and unchecked exceptions.
3. What is try-catch?
4. What is finally block?
5. What is throw vs throws?
Long Questions
1. Explain the exception hierarchy in Java.
2. Explain try-catch-finally with examples.
3. Describe throw and throws keywords.
4. How to create custom exceptions in Java?
5. Explain multiple catch and nested try blocks.
MODULE 8 – File I/O & Serialization (Marks: 6)
Short Questions
1. What is File Handling?
2. What is Serialization?
3. What are FileInputStream and FileOutputStream?
4. What is ObjectOutputStream?
Long Questions
1. Explain file reading and writing using:
a) FileReader
b) FileWriter
2. Explain byte stream and character stream classes.
3. What is serialization and deserialization? Explain with example.
4. Explain File class methods.
MODULE 9 – Multithreading (Marks: ?)
Short Questions
1. What is a thread?
2. What are the states of a thread?
3. What is synchronization?
4. What is inter-thread communication?
Long Questions
1. Explain thread lifecycle with diagram.
2. Explain how to create threads using:
a) Thread class
b) Runnable interface
3. Explain synchronization and why it is needed.
4. Explain inter-thread communication (wait, notify, notifyAll).
Most Expected 10-MARK Questions (Very Important)
1. Explain JVM architecture with a neat diagram.
2. Explain OOP concepts in Java with examples.
3. Describe method overloading vs overriding with examples.
4. Explain String, StringBuffer, and StringBuilder differences.
5. Explain exception handling mechanism in Java with code.
6. Explain serialization and deserialization with examples.
7. Explain multithreading lifecycle with a diagram.
8. Discuss inheritance, polymorphism, and restrictions on overriding.