Home › AKTU PYQ › Object Oriented Programming with Java › PYQ Questions

Object Oriented Programming with Java (BCS403) AKTU previous year questions 2024–2026

Every Object Oriented Programming with Java question from 3 AKTU papers, tagged by unit, topic and marks. A few recent questions from each unit are listed below; open the page to filter by unit, topic or mark type.

Unit 1: Introduction, Programming Structures, OOP and Packages – AKTU PYQs

  • State the specific functions of the JVM, JRE, and JDK. Why is the JVM the reason Java is called Platform Independent? (2 marks, 2026, Introduction to Java)
  • What is the role of constructors in Java classes and when are they invoked automatically? (2 marks, 2026, Classes and Objects)
  • Discuss the four pillars of Object-Oriented Programming - Encapsulation, Abstraction, Inheritance, and Polymorphism. Also explain how they help in building reusable code. (7 marks, 2026, Object Oriented Programming Concepts)
  • 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, 2026, Object Oriented Programming Concepts)
  • Explain how packages are defined and used in Java. Discuss the naming conventions for avoiding package name conflicts. (7 marks, 2026, Packages in Java)

Unit 2: Exception Handling, Input Output and Multithreading – AKTU PYQs

  • List the five Exception Handling keywords. Can a try block exist without a catch or finally? (2 marks, 2026, Exception Handling)
  • Define a Thread. What is the difference between extending Thread and implementing Runnable? (2 marks, 2026, Multithreading)
  • Explain the difference between Byte Streams and Character Streams. Describe the classes used to read and write a simple text file. (7 marks, 2026, Input Output Basics)
  • 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, 2026, Exception Handling)
  • Write a Java program to solve the Producer-Consumer problem using a shared buffer and methods - wait() and notify(). (7 marks, 2026, Multithreading)

Unit 3: Java New Features – AKTU PYQs

  • Describe Sealed Classes and Records in detail. How do these features improve data modeling in Java? (7 marks, 2026, Modern Java Syntax Features)
  • 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, 2026, Functional Interfaces and Lambda)
  • 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, 2026, Stream API)
  • What is a functional interface? Give an example. (2 marks, 2025, Functional Interfaces and Lambda)
  • What is the Stream API in Java? How does it help in functional-style operations? (7 marks, 2025, Stream API)

Unit 4: Java Collections Framework – AKTU PYQs

  • Why does TreeSet keep elements in sorted order, while HashSet does not? (2 marks, 2026, Set Interface Implementations)
  • Give a detailed description of the Java Collection Framework hierarchy. Also explain the relationship between the Iterable, Collection, and List interfaces. (7 marks, 2026, Collection Framework Overview)
  • 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, 2026, Sorting and Comparators)