OOP JAVA PYQ 2025-26 AKTU Question Paper

AKTU · BTECH · Semester 4 · Object Oriented Programming with Java · Session 2025-26 · PYQ

AKTU Object Oriented Programming with Java previous year question paper 2025-26 for B.Tech Semester 4. Covers Introduction, Programming Structures, OOP and…

Open the interactive reader to study this resource on AcademicArk.

Object Oriented Programming with Java AKTU syllabus

  1. Unit 1: Introduction, Programming Structures, OOP and Packages
  2. Unit 2: Exception Handling, Input Output and Multithreading
  3. Unit 3: Java New Features
  4. Unit 4: Java Collections Framework
  5. Unit 5: Spring Framework and Spring Boot

Questions in Object Oriented Programming with Java AKTU PYQ 2025-26

  1. Q1a. State the specific functions of the JVM, JRE, and JDK. Why is the JVM the reason Java is called Platform Independent? (2 marks, 2025-26)
  2. Q1b. What is the role of constructors in Java classes and when are they invoked automatically? (2 marks, 2025-26)
  3. Q1c. List the five Exception Handling keywords. Can a try block exist without a catch or finally? (2 marks, 2025-26)
  4. Q1d. Define a Thread. What is the difference between extending Thread and implementing Runnable? (2 marks, 2025-26)
  5. Q1e. Explain the Diamond Syntax (<>) introduced in Java 7. How does it make generic code easier to write? (2 marks, 2025-26)
  6. Q1f. Why does TreeSet keep elements in sorted order, while HashSet does not? (2 marks, 2025-26)
  7. Q1g. What is Aspect-Oriented Programming (AOP) and how it helps with logging without touching the main business logic? (2 marks, 2025-26)
  8. Q2a. Discuss the four pillars of Object-Oriented Programming - Encapsulation, Abstraction, Inheritance, and Polymorphism. Also explain how they help in building reusable code. (7 marks, 2025-26)
  9. Q2b. Explain the difference between Byte Streams and Character Streams. Describe the classes used to read and write a simple text file. (7 marks, 2025-26)
  10. Q2c. Describe Sealed Classes and Records in detail. How do these features improve data modeling in Java? (7 marks, 2025-26)
  11. Q2d. Give a detailed description of the Java Collection Framework hierarchy. Also explain the relationship between the Iterable, Collection, and List interfaces. (7 marks, 2025-26)
  12. Q2e. Explain Dependency Injection with a real-world example. How does Spring’s Inversion of Control container manage these dependencies? (7 marks, 2025-26)
  13. Q3a. Explain the concept of Method Overriding. How does Java decide which method to call at runtime when a subclass object is assigned to a superclass reference? (7 marks, 2025-26)
  14. Q3b. Explain how packages are defined and used in Java. Discuss the naming conventions for avoiding package name conflicts. (7 marks, 2025-26)
  15. Q4a. Create a Custom Exception class named InvalidPasswordException. Write a program that throws this exception if a user's password is less than 8 characters long. (7 marks, 2025-26)
  16. Q4b. Write a Java program to solve the Producer-Consumer problem using a shared buffer and methods - wait() and notify(). (7 marks, 2025-26)
  17. Q5a. What is a Functional Interface in Java? Write a program that uses Lambda Expressions to perform basic arithmetic operations (Add, Sub, Mul) via a custom Functional Interface. (7 marks, 2025-26)
  18. Q5b. What is Stream API? Use the Stream API to process a list of Employee objects: filter those with salary > 50000, and print their names in uppercase. (7 marks, 2025-26)
  19. Q6a. Write a Java program using ArrayList to store 5 employee objects (ID, Name, Salary). Sort the list by salary in descending order using a Comparator. (7 marks, 2025-26)
  20. Q6b. Write a Java program that uses a HashMap to store a Phone Book (Name as key, Phone Number as value). Implement a feature to search for a number by name. (7 marks, 2025-26)
  21. Q7a. Explain the Spring Bean Lifecycle. Describe the steps from when a bean is instantiated until it is destroyed by the container. (7 marks, 2025-26)
  22. Q7b. Explain the architecture of a RESTful Web Service. How does Spring Boot handle a client request and return a JSON response? (7 marks, 2025-26)

AKTU paper codes: BCS403

Browse all notes · Semester 4 notes · OOP with Java notes