QUESTION BANK
YEAR: II/I
BRANCH: CSE-AI
SUBJECT: OBJECT ORIENTED PROGRAMMIN THROUGH JAV AY:2025-26
TWO MARKS QUESTION
UNIT-I
SNO QUESTION CO BT
1 What are the basic features of Java? 1 I
2 Define a token in Java. 1 I
3 What is structure of Java program? 1 I
4 Describe any two types of Java operators. 1 II
5 Define type casting. 1 I
6 Explain Syntax of while and do-while 1 II
UNIT-II
7 What is a constructor? Give an example. 2 I
8 Define method overloading. 2 I
9 What is a final class? 2 I
10 Explain this keyword? 2 II
11 Demonstrate How is an object declared in Java? 2 III
12 What is access control in Java? 2 I
UNIT-III
13 What is an array in Java? 3 I
14 What is the purpose of the super keyword? 3 I
15 Define abstract class. 3 I
16 Describe any two interfaces in Java. 3 II
17 What is dynamic method dispatch? 3 I
18 What is a functional interface? 3 I
UNIT-IV
19 What is a package in Java? 4 I
20 Define auto-boxing. 4 I
21 What is the use of the throw keyword? 4 I
22 List two classes from the [Link] package. 4 I
23 What are byte streams? 4 II
24 Mention two standard exception classes in Java. 4 II
UNIT-V
25 What is the difference between String and StringBuffer? 5 I
26 Define thread priority. 5 I
27 What is JDBC? 5 I
28 describe a race condition? 5 II
29 What is the use of Scene Builder in JavaFX? 5 I
30 Mention any two JDBC interfaces. I
ESSAY QUESTION
SNO QUESTION CO BTL
UNIT-I
1 Explain the structure of a Java program with an example. 1 II
2 Describe various data types in Java with examples. 1 II
3 Write a Java program using command line arguments and explain it. 1 II
4 Demonstrate different types of Java operators with precedence rules. 1 II
5 Explain control statements in Java with syntax and examples. 1 II
6 Differentiate if-else, switch, and ternary operators in Java. 1 IV
UNIT-II
7 Explain class and object declaration with examples. 2 II
8 Describe various types of constructors in Java. 2 II
9 Demonstrate access modifiers and their importance. 2 III
10 Differentiate between method overloading and overriding with examples. 2 IV
11 Explain the use of static and final keywords in Java. 2 II
12 Write a program to demonstrate passing objects as arguments in methods. 2 III
UNIT-III
13 Explain one-dimensional and two-dimensional arrays with examples. 3 II
14 Describe the concept of inheritance and its types with examples. 3 II
15 Illustrate Dynamic Method Dispatch? Give an example. 3 IV
16 Discuss interface implementation in Java with suitable code. 3 III
17 Compare abstract classes and interfaces. 3 IV
18 Write a Java program demonstrating multiple inheritance using interfaces. 3 III
19 Explain one-dimensional and two-dimensional arrays with examples. 3 II
UNIT-IV
20 Explain the creation and use of packages in Java. 4 II
21 Describe exception handling using try-catch-finally blocks with examples. 4 II
22 Write a Java program to demonstrate the use of wrapper classes. 4 III
23 Explain different types of Java I/O streams. 4 II
24 Describe checked and unchecked exceptions with examples. 4 II
25 How is file handling done in Java? Write a program for file read/write operations. 4 II
UNIT-V
26 Explain string manipulation using String and StringBuffer classes. 5 II
27 Describe thread lifecycle in Java with a diagram. 5 II
28 Explain inter-thread communication with example code. 5 II
29 Discuss JDBC architecture and steps to establish a database connection. 5 II
30 Write a JavaFX program to display text and handle mouse events. 5 I
31 Explain Deadlock and Race Situations in multithreading. 5 II