Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
20 views2 pages

JAVA Unit Wise PYQs PDF

The document outlines previous year questions (PYQs) for the Object Oriented Programming with Java course, organized by units. Each unit covers key concepts such as Java architecture, exception handling, functional interfaces, collections framework, and Spring framework. The questions include definitions, explanations, and programming tasks to demonstrate understanding of the topics.

Uploaded by

mohd001umar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views2 pages

JAVA Unit Wise PYQs PDF

The document outlines previous year questions (PYQs) for the Object Oriented Programming with Java course, organized by units. Each unit covers key concepts such as Java architecture, exception handling, functional interfaces, collections framework, and Spring framework. The questions include definitions, explanations, and programming tasks to demonstrate understanding of the topics.

Uploaded by

mohd001umar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Previous Year Questions (PYQs) (Unit Wise)

Object Oriented Programming with Java (BCS – 403)


UNIT - I
1. Describe JVM and byte code in Java Architecture.
2. Define the concept of classes and object in Java with a suitable example.
3. Explain abstraction and abstract classes in Java. Describe abstract method. With a suitable
example demonstrate the application of abstract classes.
4. Explain Interfaces in Java with suitable example.
5. Illustrate polymorphism and its types in Java. Differentiate between run-time and compile-
time polymorphism. Write super class Shape with method displayArea() and sub class
Rectangle. Demonstrate method overriding with this example.
6. Illustrate Constructors and their applications in Java. Describe the types of constructors
used in Java. Write a class with name Student with attributes roll_number, name, branch
and email. Write all argument constructor for class Student and create two objects with this
constructor.
UNIT - II
1. Describe all the keywords used for exception handling in Java.
2. Differentiate between checked and unchecked exceptions in Java. Write a Java program to
demonstrate Arithmetic Exception handlings.
3. Describe the ways to create the threads in Java with suitable code. Also explain which
method is more suitable to create threads.
4. Describe various states achieved by the thread in its life cycle.
5. Differentiate between with suitable examples: 1. Character streams and Byte Streams 2.
wait() and notify()
UNIT - III
1. Explain the functional interfaces in Java. Describe lambda expressions with the help of
functional interfaces.
2. Explain Java stream API and its applications. Describe Intermediate and terminal
operations with suitable example. Write a program to print sum of all even numbers form
an ArrayList<Integer> containing all integers from 1 to 10.
3. Compare and contrast switch-case statement with switch-expression in Java. Explain with
suitable example.
4. Explain the concept of Sealed classes in Java with suitable example.
UNIT - IV
1. Describe Collections framework in Java with a suitable diagram displaying interfaces and
classes and their hierarchy. Also explain the List, Set and Queue interfaces.
2. Write a Java program to create an ArrayList<String> with five items and display all the
elements using forEach method.
3. Describe Linked List in Java collection framework. With suitable example describe any
five methods available in Linked Lists.
4. Describe HashMap in Java collection framework. With suitable example describe any five
methods available in HashMaps.
UNIT – V
1. Describe following: 1. Spring container 2. Spring bean life cycle
2. Explain the difference between Dependency Injection (DI) and Inversion of Control (IoC)
in Spring.
3. Describe following: 1. Spring boot framework and its benefits 2. RESTFUL API with
Spring boot

You might also like