0% found this document useful (0 votes)
7 views1 page

Java Object-Oriented Programming Question Bank

The document is a question bank for the Object Oriented Programming with Java course at Seshadripuram Institute of Technology. It includes various programming tasks and concepts related to exception handling, threading, and Java features. The questions cover creating custom exceptions, thread synchronization, and the use of wrapper classes among other topics.

Uploaded by

Pradeep B
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)
7 views1 page

Java Object-Oriented Programming Question Bank

The document is a question bank for the Object Oriented Programming with Java course at Seshadripuram Institute of Technology. It includes various programming tasks and concepts related to exception handling, threading, and Java features. The questions cover creating custom exceptions, thread synchronization, and the use of wrapper classes among other topics.

Uploaded by

Pradeep B
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

Seshadripuram Institute of Technology

(Approved by AICTE, New Delhi and Affiliated to VTU, Belagavi)


Department of Computer Science and Engineering

QUESTION BANK-IA 3
Subject name: Object Oriented Programming With Java
Course Code: BCS306A

1. How do you create your own exception class?Explain with program.


2. Demonstrate the working of nested try block with example in java.
3. Demonstrate the working of multiple catch block with example in java.
4. Write a java program to demonstrate Chained exception.
5. Write a java program to demonstrate throw and throws keyword in java.
6. Define Exception?Explain exception handling mechanism provided in java with example.
7. Define Thread?Discuss the ways of creating threads.
8. What is the need of synchronization?Explain with example how synchronization is
implemented in java
9. Write a java program to demonstrate Inter-Thread Communication
10. Write a java program to demonstrate Thread priorities in java
11. Explain isAlive( ) and join( ) methods in java
12. Explain Autoboxing/unboxing expressions
13. Discuss values( ) and ValueOf( ) method enumerations with example
14. Write a note on different Wrapper class
15. Develop a Java program to raise a customexception(userdefinedexception)for
DivisionByZero using try, catch, throw and finally Explain static keyword in java

16. Write a program to illustrate creation of threads using runnable class. (start method start
each of the newly created thread. Inside the run method there is sleep() for suspend the
thread for 500 milliseconds)
17. Develop a program to create a class MyThread in this class a constructor, call the base class
constructor,using super and start the [Link] run method of the class starts after [Link] can be
observed that both main thread and created child thread are executed concurrently

You might also like