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

Opps With Java Question Bank 3

The document is a question bank for the OOPS with Java course at KNS Institute of Technology for the academic year 2025-2026. It includes questions from Modules 4 and 5, focusing on packages, exception handling, multithreading, and autoboxing in Java. Each question is categorized by course outcomes and knowledge levels, providing a comprehensive assessment tool for students.

Uploaded by

Abubaker osman
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)
25 views2 pages

Opps With Java Question Bank 3

The document is a question bank for the OOPS with Java course at KNS Institute of Technology for the academic year 2025-2026. It includes questions from Modules 4 and 5, focusing on packages, exception handling, multithreading, and autoboxing in Java. Each question is categorized by course outcomes and knowledge levels, providing a comprehensive assessment tool for students.

Uploaded by

Abubaker osman
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

KNS INSTITUTE OF TECHNOLOGY

DEPARTMENT OF ARTIFICIAL INTELLIGENCE & MACHINE LEARNING


QUESTION BANK -3
Academic Year (2025– 2026)

Semester III Subject Code BCS306A Subject Name OOPS WITH JAVA
COURSE OUTCOMES:
CO4 Use the concept of packages and exception handling in solving complex problem
CO5: Apply concepts of multithreading, autoboxing and enumerations in program development
L1 Remember L2 Understand L3 Apply L4 Analyze L5 Evaluate L6 Create

QUESTIONS FROM MODULE-4,5 Knowled


Q. NO CO ge
level
MODULE -4
1. Define a Package, syntax, and with a short package example? 4 L1

2. Explain Packages and Member Access in java with help of program? 4 L2


3. How does Importing Packages works, explain it briefly with the help of 4 L3
program?
4 What is Exception Handling, Syntax and program to justify it! 4 L1

5 Explain all Exception type and exception hierarchy with block diagram? 4 L3

6 Explain the following with the help of syntax and program 4 L3


a) Using Try and Catch
b) Throw
c) Throws
d) Finally
e) Nested try catch
f) Multiple catch clauses
7 Explain any 8 Java’s Built-in Exceptions each from:(Java Checked and 4 L2
unchecked Exceptions)?
8 How do we create our own exception subclass, justify with the help of 4 L3
program?
9 What is chained exception, explain in brief with the suitable program? 4 L3

MODULE -5

10 What is multithreaded programming? Explain its types of multitasking 5 L1


11 Explain the following in brief: 5 L3
a)The Java Thread Model
b)Thread Priorities
c)Synchronization
d)Messaging
e)The Thread Class and the Runnable Interface
12 What is Main Thread, explain with the help of Syntax and program? 5 L3
13 How do we create thread? 5 L4
(need to explain both using implement runnable and by extending thread).
14 How do we create Multiple thread, explain it with the help of program? 5 L3

15 Explain the following with the help of program: 5 L2


1. Using isAlive( )
2. join( )
3. Thread Priorities(no program needed)
4. Synchronization(no program needed)
5. Using Synchronized Methods
6. final void wait( ) throws InterruptedException
7. final void notify( )
8. final void notify All( )
16 Explain the following with the help of program: 5 L4

a) Producer and consumer problem


b) Deadlock
17 What is thread state and explain its state with block diagram 5 L3
18 Describe the following terms in details with the help of program 5 L2

a) Enumerations
b) Enumeration Fundamentals
c) Java Enumerations Are Class Types
d) final int ordinal( )
e) final int compareTo(enum-type e)
f) equals( )
19 What is Type Wrappers and explain all the type wrappers with syntax and also 5 L3
program demonstrates how to use a numeric type wrapper to encapsulate a value
and then extract that value.

20 What is Autoboxing and explain the following with the help of program 5 L3
a)Autoboxing and Methods
b)Autoboxing/Unboxing Occurs in Expressions
c)Autoboxing/Unboxing Boolean and Character Values.

Faculty-in-charge HOD

You might also like