[go: up one dir, main page]

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

Java Unit-4 Imp Question

This document outlines important questions related to multithreading and exception handling in Java. It covers definitions, types of exceptions, exception handling syntax, thread concepts, Java Beans, and I/O packages, along with examples and explanations of various classes and methods. The questions serve as a guide for understanding key Java programming concepts.

Uploaded by

Sharan S Shaan
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)
39 views1 page

Java Unit-4 Imp Question

This document outlines important questions related to multithreading and exception handling in Java. It covers definitions, types of exceptions, exception handling syntax, thread concepts, Java Beans, and I/O packages, along with examples and explanations of various classes and methods. The questions serve as a guide for understanding key Java programming concepts.

Uploaded by

Sharan S Shaan
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
You are on page 1/ 1

UNIT-IV MULTITHREADING & EXCEPTION IN JAVA

IMPORTANT QUESTIONS
1. What is Exception?
2. What happens when exception occurs?
3. Mention types of Exception.
4. What is Checked Exception?
5. What is Unchecked Exception?
6. What is Exception Handling?
7. Write Syntax for try and catch block?
8. Write syntax for try, catch and finally block.
9. What is thread in java?
10. What is Multithreading in java?
11. What is Main Thread?
12. What are the ways to create thread in java?
13. Mention states of Thread Life cycle.
14. What is the default priority for any thread?
15. What is notify(), notifyall(), wait(), suspend(), resume(), stop() methods?
16. What is Java Bean?
17. What are the conventions to follow for Java bean class?
18. Write syntax for setter method.
19. Write syntax for getter method.
20. What is java I/O package?
21. What is Steam?
22. What is Input stream?
23. What is Output stream?
24. What is Byte Stream class?
25. What is character stream class?
26. What is FileReader class?
27. What is FileWriter class?
28. Explain exception handling with try, catch and finally block.
29. Explain Multithreading with extending Thread class.
30. Explain Multithreading with implementing Runnable interface?
31. Explain Thread life cycle.
32. Explain Thread priority with program.
33. Explain java bean class with an example.
34. Explain Java I/O package.
35. Explain Byte Stream class with an example.
36. Explain Character stream class with an example.
37. Explain FileReader & FileWriter with an example.

You might also like