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

Java 23-24

The document is an examination paper for a BTech course on Object Oriented Programming with Java, covering various topics such as Java architecture, exception handling, threads, collections framework, and Spring framework. It consists of multiple sections with questions requiring brief answers, detailed explanations, and programming tasks. The exam is structured to assess knowledge on key concepts and practical applications in Java programming.
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)
26 views2 pages

Java 23-24

The document is an examination paper for a BTech course on Object Oriented Programming with Java, covering various topics such as Java architecture, exception handling, threads, collections framework, and Spring framework. It consists of multiple sections with questions requiring brief answers, detailed explanations, and programming tasks. The exam is structured to assess knowledge on key concepts and practical applications in Java programming.
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

Printed Page: 1 of 2

Subject Code: BCS403


PAPER ID-411286
Roll No:

BTECH
(SEM IV) THEORY EXAMINATION 2023-24
OBJECT ORIENTED PROGRAMMING WITH JAVA
TIME: 3 HRS M.MARKS: 70

Note: 1. Attempt all Sections. If require any missing data; then choose suitably
SECTION A

1. Attempt all questions in brief. 2 x 7=14


a
Describe JVM and byte code in Java Architecture
b. Define the concept of classes and object in Java with a suitable example.
‫اع‬ Explain Interfaces in Java with suitable example.
a. Describe all the keywords used for exception handling in Java
‫بھا‬ Describe various states achieved by the thread in its life cycle.
f. Write a Java program to create an ArrayList<String> with five items and display all the elements
using forEach method.
g. Explain the concept of Sealed classes in Java with suitable example.
SECTION B

2. Attempt any tiree of the following: 7x3=21

a Explain abstraction and abstract classes m Java. Describe abstract method. With a suitable
example demonstrate the application ofabstract classes.
b Describe the ways to create the threads in Java with suitable code. Also explain which methoр
is more suitable to create threads.
c. Explain the functional interfaces in Java. Describe lambda expressions with the help of

functional interfaces
d. Describe Collections, framework in Java with a suitable diagram displaying interfaces and
classes and their hierarchy. Also explain the List, Set and Queue- interfaces.
e Explain the difference between Dependency Injection (DI) and Irversion of Control (loC) in
Spring. https://www.aktuonline.com
SECTION C

Attempt any part of the following: 7x1=7


3. one

(a) Illustrate polymorphism and its types in Java. Differentiate between run-time and compile-time
polymorphism. super class Shape with method displayArea() and sub class Rectangle.
Write
Demonstrate method overriding with this 'example.
(b) 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.
4. following: 7x1=7
Attempt any one part of the
(a) Differentiate between checked and unchecked exceptions in Java. Write a Java program to
demonstrate Arithmetic Exception handlings.
(b) Differentiate between with suitable examples:
1. Character streams and Byte Streams
2. wait() and notify()
7x1=7
5. Attempt any one part of the following:
(a) Explain Java stream API and its applications. Describe Intermediate and termınal operations
an
with suitable example Write a program to print sum of all even numbers form
ArrayList<Integer> containing all integers from 1 to 10.
(b) Compare and contrast switch-case statement with switch-expression in Java. Explain with
suitable example

1038
https://www.aktuonline.com
Printed Page: 2 of2

PAPER ID-411286
Subject Code: BCS403
Roll No:

BTECH
(SEM IV) THEORY EXAMINATION 2023-24
ОВJЕСТ ORIENTED PROGRAMMING WITH JAVA
TIME: 3 HRS
M.MARKS: 70

6. Attempt any one part of the following: 7x1=7


(a) Describe Linked List in Java collection framework. With suitable example describe any five
methods available in Linked Lists.
(b) Describe HashMap in Java collection framework. With suitable exampl
e describe any five
methods available in HashMaps.
7. Attempt any one part of the following: 7x1=7
(a) Describe following
1. Spring container
2. Spring bean life cycle
(b) Describe following
3. Spring boot framework and its benefits
4. RESTFUL API with Spring boot

7
.1
54
8 .1
.5
52
|1
M
P
27
3
4

https://www.aktuonline.com
Whatsapp @ 9300930012
Send your old paper & get 10/-

अपने पुराने पेपर्स भेजे और 10 रुपये पायें,


Paytm or Google Pay से

https://www.aktuonline.com

You might also like