Live online classes · Mon–Sat · India-wide

Object Oriented Programming with Java (BCS403) Important Questions

AKTU B.Tech · 2nd Year · Exam 2026-27. Worked out from 2 real papers, 2023-24 to 2024-25.

  • 2AKTU papers analysed
  • 13must-do topics
  • 10repeated 2-mark questions
Share on WhatsApp

The PDF has every topic with the years it came, a unit-wise plan and the sources. Free. Share it with your class.

Most likely question in each unit

UnitMost likelyBackup topics
1Java basics (JVM, JRE, classes, constructors, data types, arrays, strings), OOP (inheritance, polymorphism, abstraction, interfaces), packagesClasses, objects & constructors / JVM-JRE-bytecode (2/2 each)Polymorphism: overloading vs overriding · Abstract class vs interface · Packages & CLASSPATH (in syllabus, never asked yet)
2Exception handling, I/O streams & files, multithreading (life cycle, creating threads, priorities, synchronization, inter-thread communication)Exception-handling program: try-catch-finally, checked vs unchecked (2/2)Thread creation, even/odd threads program (2/2) · Byte vs character streams · wait()/notify()
3Java new features: functional interfaces, lambda, method references, Stream API, default/static methods, forEach, annotations, switch expressions, records, sealed classesFunctional interfaces + lambda (2/2)Stream API with filter/map/sum (2/2) · Switch expressions & yield · Annotations · Records/sealed classes
4Collections Framework: hierarchy, List/ArrayList/LinkedList/Vector/Stack, Queue, Set/HashSet/TreeSet, Map/HashMap/TreeMap, Comparable/ComparatorHashMap program / Collections hierarchy (2/2 each)ArrayList vs LinkedList (2/2) · Comparable vs Comparator and TreeSet/TreeMap (in syllabus, never asked yet)
5Spring (IoC, DI, AOP, bean scopes, autowiring, life cycle) and Spring Boot (structure, runners, logger, REST controllers, GET/POST/PUT/DELETE)Spring Boot REST CRUD API (2/2)DI vs IoC and DI types (2/2) · Spring Boot structure & benefits (2/2) · Bean life cycle and scopes

Must-do topics

These came in most of the 2 papers. Prepare them first.

  • JVM, JRE, bytecode & platform independence

    came in 2 of 2 papers

    Unit 1 · 2023-24 to 2024-25

    How to answer: Draw source (.java) -> javac -> bytecode (.class) -> JVM (class loader, bytecode verifier, interpreter/JIT) -> OS. Define JDK = JRE + tools, JRE = JVM + libraries. 'Write once, run anywhere' because the JVM, not the OS, runs the bytecode.

    Last asked (2024-25, Section C): Explain the concept of Java Virtual Machine and Java Runtime Environment.

  • Classes, objects & constructors (types, Student class program)

    came in 2 of 2 papers

    Unit 1 · 2023-24 to 2024-25

    How to answer: Class = blueprint, object = instance (new). Constructor: same name as class, no return type, runs on new. Types: default, no-arg, parameterised, copy (by code), plus constructor overloading and this(). Practise the Student(roll_number, name, branch, email) all-argument constructor with two objects.

    Last asked (2024-25, Section A): What is the role of a constructor in a Java class?

  • Exception handling keywords (try, catch, finally, throw, throws)

    came in 2 of 2 papers

    Unit 2 · 2023-24 to 2024-25

    How to answer: One line + snippet for each of the five keywords. finally always runs (cleanup). throw = actually raise one exception object inside a method; throws = declare possible checked exceptions in the method signature. Mention the JVM default handler (stack trace, program ends).

    Last asked (2024-25, Section A): How is throw different from throws?

  • Exception types & programs (checked vs unchecked, ArithmeticException, multiple catch)

    came in 2 of 2 papers

    Unit 2 · 2023-24 to 2024-25

    How to answer: Hierarchy: Throwable -> Error / Exception -> RuntimeException. Checked (IOException, SQLException: compile-time) vs unchecked (ArithmeticException, NullPointerException, ArrayIndexOutOfBounds: run-time). Practise a program with several catch blocks + finally, and a user-defined exception (extends Exception).

    Last asked (2024-25, Section C): Write a Java program to handle multiple exceptions using try-catch-finally.

  • Creating threads (Thread vs Runnable) & multithreading programs

    came in 2 of 2 papers

    Unit 2 · 2023-24 to 2024-25

    How to answer: Two ways: extend Thread and override run(), or implement Runnable and pass it to new Thread(r); call start(), not run(). Runnable is preferred (class can still extend another class). Practise: two threads printing even and odd numbers / printing numbers alternately (synchronized + wait/notify).

    Last asked (2024-25, Section C): Write a Java program that creates two threads - one to print even numbers and the other for odd numbers.

  • Functional interfaces & lambda expressions

    came in 2 of 2 papers

    Unit 3 · 2023-24 to 2024-25

    How to answer: Functional interface = exactly one abstract method (@FunctionalInterface; Runnable, Comparator, Predicate, Function, Consumer, Supplier). Lambda syntax (params) -> body implements it without an anonymous class. Write your own interface + lambda, and a built-in one.

    Last asked (2024-25, Section C): What are functional interfaces and how are they implemented using lambda expressions?

  • Stream API (intermediate & terminal operations)

    came in 2 of 2 papers

    Unit 3 · 2023-24 to 2024-25

    How to answer: Stream = pipeline over a collection: source -> intermediate (filter, map, sorted, distinct: lazy) -> terminal (forEach, collect, reduce, sum, count). Practise: sum of even numbers of an ArrayList 1..10 with list.stream().filter(n -> n % 2 == 0).mapToInt(Integer::intValue).sum().

    Last asked (2024-25, Section B): What is the Stream API in Java? How does it help in functional-style operations?

  • Collections Framework hierarchy (List vs Set vs Queue vs Map)

    came in 2 of 2 papers

    Unit 4 · 2023-24 to 2024-25

    How to answer: Draw Iterable -> Collection -> List (ArrayList, LinkedList, Vector, Stack), Set (HashSet, LinkedHashSet, SortedSet -> TreeSet), Queue (PriorityQueue, Deque); Map is separate (HashMap, LinkedHashMap, TreeMap, Hashtable). Table: order, duplicates, null, key-value.

    Last asked (2024-25, Section C): Discuss the hierarchy of the Collection framework in Java. Differentiate between List, Set, and Map.

  • ArrayList vs LinkedList (LinkedList methods)

    came in 2 of 2 papers

    Unit 4 · 2023-24 to 2024-25

    How to answer: ArrayList = dynamic array (fast get by index, slow insert/delete in middle); LinkedList = doubly linked list (fast add/remove at ends, slow random access; also a Deque). Know five methods with a program: add, addFirst, addLast, get, remove, removeFirst, size, contains.

    Last asked (2024-25, Section B): Compare and contrast ArrayList and LinkedList in terms of performance and usage.

  • HashMap (methods, iterating keys & values)

    came in 2 of 2 papers

    Unit 4 · 2023-24 to 2024-25

    How to answer: HashMap: key-value, unique keys, one null key, unordered, hashing. Methods: put, get, remove, containsKey, keySet, values, entrySet, size. Iterate with for (Map.Entry e : map.entrySet()) e.getKey(), e.getValue().

    Last asked (2024-25, Section C): Write a program to demonstrate the use of HashMap and iterate through keys and values.

  • Spring IoC & Dependency Injection (types)

    came in 2 of 2 papers

    Unit 5 · 2023-24 to 2024-25

    How to answer: IoC = the container, not your code, creates and wires objects; DI is the way IoC is done (dependencies are injected). Types: constructor, setter, field (@Autowired). Show a small Car -> Engine example and a DI vs IoC comparison.

    Last asked (2024-25, Section C): Explain the concept of Dependency Injection and its types in Spring (with a Spring Boot CRUD API, see REST topic).

  • Spring Boot: features, benefits & code structure (vs Spring)

    came in 2 of 2 papers

    Unit 5 · 2023-24 to 2024-25

    How to answer: Spring Boot = auto-configuration + starter dependencies + embedded Tomcat + no XML + Actuator. Structure: main class with @SpringBootApplication, controller / service / repository / model packages, application.properties, pom.xml (Maven) or Gradle. Comparison table with traditional Spring.

    Last asked (2024-25, Section C): Describe the structure of a basic Spring Boot application. What are the advantages of using Spring Boot over traditional web frameworks?

  • RESTful web services with Spring Boot (CRUD, GET/POST/PUT/DELETE)

    came in 2 of 2 papers

    Unit 5 · 2023-24 to 2024-25

    How to answer: @RestController, @RequestMapping, @GetMapping/@PostMapping/@PutMapping/@DeleteMapping, @PathVariable, @RequestParam, @RequestBody. Practise a CRUD controller on a List. GET reads (data in URL, idempotent), POST creates (data in body).

    Last asked (2024-25, Section C): Develop a simple API in Spring Boot to perform CRUD operations using a list as storage.

High-chance topics

  • Polymorphism: overloading vs overriding (Shape/Rectangle)Unit 1 · came in 1 of 2 papers
  • Abstraction: abstract classes & interfacesUnit 1 · came in 1 of 2 papers
  • Data types, operators & control structuresUnit 1 · came in 1 of 2 papers
  • String programs (reverse a string with user input)Unit 1 · came in 1 of 2 papers
  • Thread life cycle (states)Unit 2 · came in 1 of 2 papers
  • Synchronization & inter-thread communication (wait, notify)Unit 2 · came in 1 of 2 papers
  • I/O streams: byte vs character streams, file read/writeUnit 2 · came in 1 of 2 papers
  • forEach method (ArrayList program)Unit 3 · came in 1 of 2 papers
  • Sealed classes (and records)Unit 3 · came in 1 of 2 papers
  • Switch statement vs switch expression (yield)Unit 3 · came in 1 of 2 papers
  • Annotations: type & repeating annotationsUnit 3 · came in 1 of 2 papers
  • Stack vs QueueUnit 4 · came in 1 of 2 papers
  • Spring container & bean life cycleUnit 5 · came in 1 of 2 papers

Repeated 2-mark questions (Section A)

  1. JVM / bytecode / why Java is platform-independentasked 2 times
  2. Exception keywords: purpose of finally / throw vs throwsasked 2 times
  3. Classes & objects / role of a constructorasked 2 times
  4. What is a functional interface? Give an example.
  5. Explain interfaces in Java with an example.
  6. States of a thread in its life cycle
  7. ArrayList of five items printed with forEach
  8. Sealed classes with an example
  9. How does Stack differ from Queue?
  10. GET vs POST request

The 10 programs to practise by hand

  1. Student class with an all-argument constructor; create two objects
  2. Shape / Rectangle: method overriding with displayArea()
  3. Reverse a string read with Scanner
  4. Multiple catch blocks + finally (ArithmeticException, ArrayIndexOutOfBounds) and a user-defined exception
  5. Two threads: one prints even numbers, the other odd numbers (and the alternating version with wait/notify)
  6. Functional interface + lambda expression
  7. Stream API: sum of even numbers from an ArrayList of 1 to 10
  8. ArrayList with forEach; LinkedList with five methods
  9. HashMap: put/get/remove and iterate keys and values with entrySet()
  10. Spring Boot @RestController with GET/POST/PUT/DELETE on a List (CRUD)

Get the Object Oriented Programming with Java PDF

Share on WhatsApp

Not official AKTU material. The important questions are based on 2 previous year papers (2023-24 to 2024-25). The real paper can differ. Syllabus taken from the official AKTU B.Tech CSE 2nd-year scheme (BCS403, 3-1-0, 70 marks). Research date: 20 Nov 2026.

More subjects: all B.Tech papers. Practise coding for free on Kinetic CodeGuide.

Every course is taught live online.We do not operate any offline centre — join from anywhere in India.Live online only · no offline centreFormerly Easy Coders