OOPs with Java Most important question Unit wise
Sem(4) -2025-26
UNIT - I
1. Describe JVM and byte code in Java Architecture.
2. Define the concept of classes and object in Java with a suitable example.
3. Explain abstraction and abstract classes in Java. Describe abstract method. With a suitable
example demonstrate the application of abstract classes.
4. Explain Intertaces in Java with suitable example.
5. lustrate-polymorphism and its types in Java. Differentiate between run-time and compile-
time polymorphism. Write super class Shape with method display Area and sub class
Rectangle. Demonstrate method overriding with this example.
6. Illustrate Constructors and their applications in Java. Describe the types of constructors
used in Java. Write a class with name Student with attributes roll_number, name, branch and
email. Write all argument constructor for class Student and create two objects with this
constructor.
UNIT - 2
1. Describe all the keywords used for exception handling in Java.
2. Differentiate between checked and unchecked exceptions in Java. Write a Java program to
demonstrate Arithmetic Exception handlings.
3. Describe the ways to create the threads in Java with suitable code. Also explain which
method is more suitable to create threads.
4. Describe various states achieved by the thread in its life cycle.
5. Differentiate between with suitable examples: 1. Character streams and Byte Streams 2.
Wait() and notify()
UNIT - 3
1. Explain the functional interfaces in Java. Describe lambda expressions with the help of
functional interfaces.
2. Explain Java stream API and its applications. Describe Intermediate and terminal
operations with suitable example. Write a program to print sum of all even numbers form an
ArrayList Integer> containing all integers from 1 to 10.
3. Compare and contrast switch-case statement with switch-expression in Java. Explain with
suitable example.
4. Explain the concept of Sealed classes in Java with suitable example.
Unit 4
1. Define collections?
2. Define Java collection Frame work.
3. Explain about Collection Classes
4. Define Array List with example program
5. Define Linked List with example program
6. Define Vector with example program
7. Define Hash table with example program.
8. Define stack with example program
9. Explain Iterator with example program
10. Define Following Classes with example.
a. String Tokenize
b. Bit Set
c. Date
d. Calendar
e. Random
f. Formatter
g. Scanner
Unit 5
1. What is Spring Boot? How is it different from the traditional Spring framework?
2. Describe the structure of a basic Spring Boot application. What are the advantages of
using Spring Boot over traditional web frameworks?
3. Explain the concept of Dependency Injection and its types in Spring. Develop a
simple API in Spring Boot to perform CRUD operations using a list as storage
4. Explain the difference between Dependency Injection (DI) and Inversion of Control
(IoC) in Spring.
5. Describe following 3. Spring boot framework and its benefits 4. RESTFUL API with
Spring boot
6. Describe following 3. Spring boot framework and its benefits 4. RESTFUL API with
Spring boot