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

Java Imp Ques

This document outlines the structure and content of the BTECH (SEM IV) Theory Examination for Object Oriented Programming with Java, including various sections with questions on Java concepts such as JVM, classes, interfaces, exception handling, and collections framework. It specifies the exam duration of 3 hours and a total of 70 marks, with instructions to attempt all sections. The document includes detailed topics for each section, including practical programming tasks and theoretical questions related to Java and Spring framework.

Uploaded by

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

Java Imp Ques

This document outlines the structure and content of the BTECH (SEM IV) Theory Examination for Object Oriented Programming with Java, including various sections with questions on Java concepts such as JVM, classes, interfaces, exception handling, and collections framework. It specifies the exam duration of 3 hours and a total of 70 marks, with instructions to attempt all sections. The document includes detailed topics for each section, including practical programming tasks and theoretical questions related to Java and Spring framework.

Uploaded by

sachin806890
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
Printed Page: 1 of 2 AVOCA 00101 A AT Subject Code: BCS403 PAPER ID-411286 Roll N BTECH (SEM IV) THEORY EXAMINATION 2023-24 OBJECT ORIENTED PROGRAMMING WITH JAVA TIME: 3 HRS [Link]: 70 Note: 1. Attempt all Sections, If require any missing data; then choose suitably SECTION A 1, Attempt aif questions in brief. 2xT=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. &_ | Describe all the keywords used for exception handling in Java. ©__| Describe various states achieved by the thread in its life eyele. T__ | Writea Java program fo create an ArrayList with five items and display all the elements using forEach method. & __[ Explain the concept of Sealed classes in Java with suitable example. SECTION B 2. Attempt any three of the following: 7x3=21 & | Explain abstraction and abstract classek iv Java, Describe abstract method, With a suitable example demonstrate the application of abstract classes. 'b. _ | Describe the ways to create the threads in Java with suitable code. Also explain which method is more suitable to create thread: © | Explain the functional intetfaces in Java, Describe lambda expressions with the help of functional interfaces. © | Describe Collections framework in Java with a suitable diagram Wisplaying interfaces and classes and their hieratchy. Also explain the List, Set and Queue interfaces. ©. _ | Explain the difference between Dependency Injection (DI) and Inversion of Control (IoC) in Spring. SECTION C 3. Attempt any one part of the following: Tx1=7 (@ _] Illustrate polymorphism and its ypes 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 éxample. () __ | Mlustrate 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 elass Student and create two objects with this constructor 4, Atfempt any one part of the followin 7x1 (@) _ | Differentiate between checkedand unchecked exceptions in Java, Write @ Java program to demonstrate Arithmetic Gxception handlings. (©) _ | Differentiate between with suitable examples: 1, Character Streams and Byte Streams, 2._wait() ahd notily() Attempt any one part of the following: Txi=7 (@) _] Explain Java stream APT and its applications. Describe Intermediate and terminal operations with suitable example, Write a program to print sum of all even numbers form an ArrayList containing all integers from 1 to 10. @_[ Compare and contrast switeh-case statement with switeh-expression in Java, Explain with suitable example AVOCA 00101 A AT Subject Code: BCS403 PAPERIDAITz8 Printed Page: 2 of 2 Roll No: BTECH (SEM IV) THEORY EXAMINATION 2023-24 OBJECT ORIENTED PROGRAMMING WITH JAVA TIME: 3 HRS [Link]: 70 6. Attempt any one part of the following: Tx1=7 @) Describe Linked List in Java collection framework, With suitable example describe any five methods available in Linked Lists. o Describe HashMap in Java collection framework. With suitable example describe any five methods available in HashMaps. “Attempt any one part of the following: Txt=7 @ Describe following 1. Spring container 2._ Spring bean life cycle (b) Deseribe following 3. Spring boot framework and its benefits 4,_RESTFUL API with Spring boot

You might also like