0% found this document useful (0 votes)
22 views

Oops Question Bank Cy3

Question

Uploaded by

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

Oops Question Bank Cy3

Question

Uploaded by

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

MAHENDRA ENGINEERING COLLEGE FOR WOMEN

CS3391-OBJECT ORIENTED PROGRAMMING

CYCLE TEST-III YEAR/DEPT:II/III

UNIT-III (EXCEPTION HANDLING AND MULTITHREADING)

PART-A (2 MARKS)

1. Interpret what is an Exception. What is its use?


2. What is re-throwing an expression?
3. Define uncaught exception.
4. List the values associated with the parameters of Setpriority() method of Thread class.
5. What is DeadLock?
6. Differentiate exception and error.
7. Classify the exception types with example.
8. Draw the exception hierarchy.
9. Explain how to create custom exception.
10. Give the properties of thread.
11. Name the two ways to create a thread in java.
12. What is thread pool?
13. Give the idea to achieve thread synchronization in Java.
14. Define multithreading.
15. Give the methods used for inter thread communication.

PART-B (13 MARKS)

1. Discuss in detail about exception handling constructs and write a program to illustrate
Divide by zero exception.(13)
2. Explain the following in detail with example program
i.Checked Exception(7)
ii.Unchecked exception(6)
3. Describe in detail about multithread programming with example (13)
4. i. Illustrate the concept of synchronization in thread.(7)
ii. Deamon threads (6)
5. Summarize the following with example program
i.Arithmetic exception(5)
ii.Arrayoutofbound exception (4)
ii.Stringindexoutofbound exception (4)
6. i. Explain about thread properties with example(6)
ii. Explain what is inter-thread communication? List out the methods used for it.(7)

PART-C (15 MARKS)


1. Explain built-in exception handling and user defined exception handling with Java
program(15)
2. Explain about exception handling basics, multiple catch clauses, nested try statement(15)
3. Write a short notes on suspending-resuming-stopping thread, wrapping and
autoboxing(15).

UNIT-IV (I/O, GENERICS, STRING HANDLING)


PART-A (2 MARKS)
1. What are types of I/O streams?
2. List the any five byte stream class.
3. Illustrate any five character stream class.
4. What are streams? What are their advantages?
5. Define generic class.
6. Illustrate a simple generic class with an example.
7. Summarize the advantages of generic programming
8. State the purpose of Valueof() method in String class.
9. List out any two methods available in DataOutput Interface.
10. Explain string.

PART-B (13 MARKS)

1. Illustrate in brief about


i. Reading from a file. (7)
ii. Writing in a file. (6)
2. Explain the following with example
i. Reading console input. (7)
ii. Writing console output. (6)
3. i. Illustrate the motivations of generic programming.(7)
ii. Describe in detail about bounded types with suitable example.(6)

4. Apply the String handling functions to do the following operations:


i. Compare the two strings
ii. Reverse the string- “HAPPY”
5. Discuss in detail about the restrictions and limitations of using generics in Java
Programming.

PART-C

1. Explain in detail about I/O basic with suitable examples.


2. Describe the generic programming with examples.

You might also like