Java Important Questions (Units I – V)
UNIT – I (Java Basics & OOP)
Short Questions
1 What are the principles of Object Oriented Programming (OOP)?
2 What is Data Hiding?
3 Define Encapsulation.
4 What is Inheritance?
5 What is Polymorphism?
6 What is Method Overloading?
7 What is JVM (Java Virtual Machine)?
8 What are Variables in Java?
9 What are Symbolic Constants?
10 What is Type Casting?
11 Define Data Types in Java.
12 What are Arithmetic Operators?
Long Questions
1 Explain the Principles of OOP with examples.
2 Explain the structure of a Java program with diagram.
3 Describe JVM and its functions.
4 Explain data types and variables in Java.
5 Explain different Java operators with examples.
UNIT – II (Control Statements)
Short Questions
1 What is if statement?
2 What is if-else statement?
3 What is else-if ladder?
4 What is switch statement?
5 What is conditional operator (? :)?
6 What is a loop?
7 What is while loop?
8 What is for loop?
9 What are jump statements?
Long Questions
1 Explain if, if-else and nested if-else statements with examples.
2 Explain switch statement with syntax and example.
3 Explain loops in Java (while, do-while, for) with examples.
4 Explain jump statements in loops.
UNIT – III (Classes & Inheritance)
Short Questions
1 What is a Class?
2 What is an Object?
3 What is a Constructor?
4 What is Method Overloading?
5 What are Static Members?
6 What are Access Specifiers in Java?
7 What is Method Overriding?
8 What is a Final Variable?
9 What is an Abstract Class?
Long Questions
1 Explain Class and Object in Java with example.
2 Explain Constructors and their types.
3 Explain Inheritance in Java with example.
4 Explain Access Specifiers (public, private, protected).
5 Explain Abstract Classes and Methods.
UNIT – IV (Arrays, Strings & Interface)
Short Questions
1 What is an Array?
2 What is a One Dimensional Array?
3 What is a Two Dimensional Array?
4 What is a String in Java?
5 What is an Interface?
6 What is Implementing an Interface?
Long Questions
1 Explain Arrays in Java with examples.
2 Explain Strings in Java.
3 Explain Interface in Java with example.
4 Explain Extending and Implementing Interface.
UNIT – V (Packages, Threads, Exceptions, Applets)
Short Questions
1 What is a Package in Java?
2 What is System Package?
3 What is a Thread?
4 What is an Exception?
5 What is an Applet?
6 What is Runnable Interface?
Long Questions
1 Explain Java Packages and their advantages.
2 Explain Thread creation in Java.
3 Explain Exception Handling in Java.
4 Explain Applet Life Cycle with diagram.
5 Explain how to create an executable Applet.