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

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

Every Object Oriented Programming with Java question from 2 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

  • Why is Java platform-independent? (2 marks, 2025, Introduction to Java)
  • What is the role of a constructor in a Java class? (2 marks, 2025, Classes and Objects)
  • Discuss the different data types and control structures in Java with examples. (7 marks, 2025, Java Programming Fundamentals)
  • Write a Java program to take user input and display the reverse of a string. (7 marks, 2025, Java Programming Fundamentals)
  • Explain the concept of Java Virtual Machine and Java Runtime Environment. (7 marks, 2025, Introduction to Java)

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

  • What is the purpose of the finally block in Java exception handling? (2 marks, 2025, Exception Handling)
  • How is throw different from throws? (2 marks, 2025, Exception Handling)
  • Explain the concept of multithreading. Write a program to implement two threads printing numbers alternatively. (7 marks, 2025, Multithreading)
  • Write a Java program to handle multiple exceptions using try-catch-finally. (7 marks, 2025, Exception Handling)
  • Write a Java program that creates two threads – one to print even numbers and the other for odd numbers. (7 marks, 2025, Multithreading)

Unit 3: Java New Features – AKTU PYQs

  • 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)
  • What are functional interfaces and how are they implemented using lambda expressions? (7 marks, 2025, Functional Interfaces and Lambda)
  • Describe the role of annotations in Java and how type annotations are used. (7 marks, 2025, Annotations and Modules)
  • Write a Java program to create an ArrayList<String> with five items and display all the elements using forEach method. (2 marks, 2024, Stream API)

Unit 4: Java Collections Framework – AKTU PYQs

  • How does Stack differ from Queue? (2 marks, 2025, List Interface Implementations)
  • Compare and contrast ArrayList and LinkedList in terms of performance and usage. (7 marks, 2025, List Interface Implementations)
  • Write a program to demonstrate the use of HashMap and iterate through keys and values. (7 marks, 2025, Map Interface Implementations)
  • Discuss the hierarchy of the Collection framework in Java. Differentiate between List, Set, and Map. (7 marks, 2025, Collection Framework Overview)
  • Describe Collections framework in Java with a suitable diagram displaying interfaces and classes and their hierarchy. Also explain the List, Set and Queue interfaces. (7 marks, 2024, Collection Framework Overview)

Unit 5: Spring Framework and Spring Boot – AKTU PYQs

  • What is a GET vs POST request? (2 marks, 2025, RESTful Web Services)
  • What is Spring Boot? How is it different from the traditional Spring framework? (7 marks, 2025, Spring Boot)
  • 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. (7 marks, 2025, Spring Core Basics)
  • Describe the structure of a basic Spring Boot application. What are the advantages of using Spring Boot over traditional web frameworks? (7 marks, 2025, Spring Boot)
  • Explain the difference between Dependency Injection (DI) and Inversion of Control (IoC) in Spring. (7 marks, 2024, Spring Core Basics)