You are on page 1of 1

JAVA QUESTIONS 4(24.1.

22)
1. What is an abstract class?
2. Explain different way of using thread?
3. What is static in java?
4. What if the main() method is declared as private?
5. What if I do not provide the String array as the argument to the method?
6. How can one prove that the array is not null but empty using one line of code?
7. Can an application have multiple classes having main() method?
8. What are Checked and UnChecked Exception?
9. Does importing a package imports the subpackages as well? Example: Does
importing com.MyTest.* also import com.MyTest.UnitTests.*?
10. Can a top level class be private or protected?
11. What is serialization?
12. Objects are passed by value or by reference?
13. What is Externalizable interface?
14. What one should take care of while serializing the object?
15. What are checked exceptions?
16. What is the difference between error and an exception?
17. How does an exception permeate through the code?
18. What are the different ways to handle exceptions?
19. How does Java handle integer overflows and underflows?
20. What is daemon thread and which method is used to create the daemon thread?

You might also like