Chapter 1 , 1 Mark
Easy
[Link] a constructor have a return type in java?
[Link] a class inherit from multiple classes in java?
[Link] an interface be instantiated?
4.A class is an instance of an object. True or False ?
[Link] a Class ?
Medium
[Link] is a Constructor?
[Link] is Inheritance?
[Link] is Polymorphism?
[Link] is Encapsulation?
[Link] is Method Overriding ?
Hard
[Link] keyword is used to implement inheritance in a Java class?
[Link] keyword is used to access members of a parent class from a child class?
[Link] access modifier restricts the visibility of a member strictly to its own
class?
[Link] keyword is used to refer to the current class instance?
[Link] keyword is used to inherit an interface ?
Chapter 1 , 5 Mark
Easy
[Link] constructor overloading with an example ?
Constructor overloading allows us to create multiple constructors in the same
class with different parameter lists.
[Link] is Abstraction in Java ? Write down the advantages and disadvantages of
Abstraction?
[Link] Encapsulation with an example ?
Medium
[Link] is command line arguments in java ? Explain with suitable example(s) ?
[Link] a simple java program with math function ?
[Link] 5 differences between Java and C ?
[Link] Platform Independent and Multi-threaded features of Java ?
Hard
[Link] is garbage collection in java ? Explain unreachable objects with an
example ?
[Link] Java applets and Java servlets ?
Chapter 1 , 15 Mark
Easy
[Link] is Java Token ? Classify Java Token types ? Explain 5 types of java
tokens with examples ?
[Link] is java ? Write 5 important features of java ? Explain object oriented
features of java with an example ?
Medium
[Link] is java environment ? What are 3 core components of java environment ?
Explain all the 3 core components of java environment ?
[Link] is object oriented programming ? Write benefits of OOPs ? Write
applications of OOPs ?
Hard
[Link] Main Method, Package declaration, Import statements, Class variables,
Local variables in java with examples ?
Chapter 2 , 1 mark
Easy
1 In Java, how many bytes of memory an int data type occupies ?
2 boolean c = "true";
Is it a correct declaration in java ?
3 In Java, how many bytes of memory a double data type occupies ?
4 Which data type is used to represent true/false values in Java?
Medium
1 Is String a primitive or non-primitive data type?
2 Is double a primitive or non-primitive data type?
3 Which primitive data types can hold the largest range of numeric values?
4 float f = 5.5;
Is this a correct declaration in java ?
Hard
1 Which data type is used to store fractional (decimal) numbers by default?
2 Which keyword is used to make a variable's value unchangeable?
3 Which data type is used to store single characters in Java?
4 What is the default value of a boolean data type?
Chapter 2 , 5 mark
Easy
1 Evaluate:
5 + 3 * 2 > 10 && 8 - 3 == 5
2 What is precedence and associativity ? Explain with examples ?
Medium
1 Explain conditional operator with an example ? Explain post increment and pre
increment with examples ?
2 What is typecasting ? Explain all types of typecasting with examples ?
Hard
1 What is symbolic constant in java ? Explain with an example ?
Chapter 2 , 15 mark
Easy
1 Explain if-else with an example ? Explain nested ifs with an example ? Explain
if-else-if ladder with an example ?
Medium
1 Explain nested for loop with an example ? Explain while and do-while with
examples?
Hard
1 Explain switch with an example? Explain break, continue and return with
suitable examples ?
Chapter 3 , 1 mark
Easy
1 What does the charAt(0) method return for the string java ?
2 Is the Vector class synchronized (thread-safe) or unsynchronized?
3 Which of the following data structures can increase its size dynamically:
Array or Vector?
4 What is the output ?
class evaluate
{
public static void main(String args[])
{
int arr[] = new int[] {0 , 1, 2, 3, 4, 5, 6, 7, 8, 9};
int n = 6;
n = arr[arr[n] / 2];
[Link](arr[n] / 2);
}
}
Medium
1 Are arrays considered primitive data types or objects in Java?
2 Is the String class in Java mutable or immutable?
3 Which keyword is used to inherit a class in Java?
4 What is the correct way of inheriting class A by class B?
Hard
1 How do you find the number of elements (length) in a Java array?
2 What is the parent class from which all other classes implicitly inherit?
3 Does Java support multiple inheritance with classes?
4 Which keyword is used to refer to an immediate parent class variable or
method?
Chapter 3 , 5 mark
Easy
1 What is java methods ? Explain with a suitable example ?
2 Write down differences between Extends and Implements in Java ?
Medium
1 What is multidimensional array ? Explain 2D array with an example ?
2 Explain Vector class in java with example ?
Hard
1 Explain Enumerated types with an example ?
Chapter 3 , 15 mark
Easy
1 What is wrapper class ? Write all wrapper class for primitive type data ? What
is autoboxing and unboxing ? Explain min(), max(), sum() method of wrapper class
with example(s) ?
Medium
1 What is Interface ? Explain multiple inheritance with example ? Explain
relation between interface and object with an example ?
Hard
1 What is polymorphism in java ? Write the advantages and disadvantages of
polymorphism? Explain method overloading and method overriding with suitable
example(s) ?
Chapter 4 , 1 mark
Easy
1 What is the default access modifier of a class?
2 Can a method declare multiple exceptions using the throws keyword ?
3 Can a catch block catch multiple exceptions ?
4 Runtime exceptions are unchecked at compile time. Is it true or false ?
Medium
1 Which keyword is used to create a package?
2 Which keyword is used to import a package into a program?
3 Can a finally block be used without a try-catch block ?
4 Can a try block have multiple catch blocks ?
Hard
1 Which block is used to enclose the code that might throw an exception?
2 Which block is used to process or handle the exception thrown by the try
block?
3 Which block always executes regardless of whether an exception occurs or not?
4 Which keyword is used to throw an exception manually?
Chapter 4 , 5 mark
Easy
1 Explain nested try blocks in exception handling ?
2 Explain ArithmeticException with an example ?
Medium
1 Write down the difference between exception and error ?
2 Differentiate between Checked and Unchecked Exceptions with suitable
examples ?
Hard
1 How does JVM handle an exception?
Chapter 4 ,15 mark
Easy
1 What is java packages ? Name and explain use cases of 4 commonly used build-
in packages ? Demonstrate with example(s) how to use user defined packages in
another class ?
Medium
1 What is try-catch block ? Explain java try-catch block with an example ?
Explain multiple catch statements and finally statement with an example ?
Hard
1 What is java exception handling ? Explain ArrayIndexOutOfBoundsException with
an example ? Explain throw and throws with examples ?