B.TechSemester 42025-26Object Oriented Programming With JavaBCS403

Object Oriented Programming With Java (BCS403) - AKTU Question Paper 2025-26

B.Tech · Semester 4 · Free PDF Download

This is the official AKTU Object Oriented Programming With Java Previous Year Question Paper for B.Tech Semester 4, academic session 2025-26. Published by Dr. A.P.J. Abdul Kalam Technical University (AKTU/UPTU), Lucknow. Free PDF download — no login required.

Course:B.Tech
Semester:Semester 4
Session:2025-26
University:AKTU / UPTU

Rate this paper

Questions Asked in 2025-26

Object Oriented Programming With Java (BCS403) — complete question paper · 70 marks · 3 Hours

Section AAttempt all questions in brief. 02 x 7 = 14
  • a
    State the specific functions of the JVM, JRE, and JDK. Why is the JVM the reason Java is called Platform Independent?
  • b
    What is the role of constructors in Java classes and when are they invoked automatically?
  • c
    List the five Exception Handling keywords. Can a try block exist without a catch or finally?
  • d
    Define a Thread. What is the difference between extending Thread and implementing Runnable?
  • e
    Explain the Diamond Syntax (<>) introduced in Java 7. How does it make generic code easier to write?
  • f
    Why does TreeSet keep elements in sorted order, while HashSet does not?
  • g
    What is Aspect-Oriented Programming (AOP) and how it helps with logging without touching the main business logic?
Section BAttempt any three of the following: 07 x 3 = 21
  • a
    Discuss the four pillars of Object-Oriented Programming - Encapsulation, Abstraction, Inheritance, and Polymorphism. Also explain how they help in building reusable code. (SEM. IV) THEORY EXAMINATION 2025-26 OBJECT ORIENTED PROGRAMMING WITH JAVA
  • b
    Explain the difference between Byte Streams and Character Streams. Describe the classes used to read and write a simple text file
  • c
    Describe Sealed Classes and Records in detail. How do these features improve data modeling in Java?
  • d
    Give a detailed description of the Java Collection Framework hierarchy. Also explain the relationship between the Iterable, Collection, and List interfaces
  • e
    Explain Dependency Injection with a real-world example. How does Spring’s Inversion of Control container manage these dependencies?
Section CAttempt any one part of the following: 07 x 1 = 07
  • a
    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?
  • b
    Explain how packages are defined and used in Java. Discuss the naming conventions for avoiding package name conflicts
  • a
    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
  • b
    Write a Java program to solve the Producer-Consumer problem using 2 K3 (SEM. IV) THEORY EXAMINATION 2025-26 OBJECT ORIENTED PROGRAMMING WITH JAVA
  • a
    shared buffer and methods - wait() and notify()
  • a
    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
  • b
    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
  • a
    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
  • b
    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
  • a
    Explain the Spring Bean Lifecycle. Describe the steps from when a bean is instantiated until it is destroyed by the container. (SEM. IV) THEORY EXAMINATION 2025-26 OBJECT ORIENTED PROGRAMMING WITH JAVA
  • b
    Explain the architecture of a RESTful Web Service. How does Spring Boot handle a client request and return a JSON response?

Question text is extracted from the official AKTU question paper PDF above. Hindi translations are omitted — every question is printed in English in the original paper. Last verified: 2026-08-23.

Object Oriented Programming With Java — Other Year Papers

AKTU Object Oriented Programming With Java PYQs from other sessions