What are the diff types of exception?



What are the diff types of exception?..

Answer / Shashank Agarwal

In Java, there are two main categories of exceptions: checked exceptions (such as IOException, SQLException) that must be declared and handled in the code, and unchecked exceptions (such as NullPointerException, RuntimeException) that do not need to be declared or handled explicitly. There are also error exceptions (such as OutOfMemoryError, StackOverflowError), which typically represent internal errors in the JVM.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

What is the purpose of the wait() method?

1 Answers  


Difference between sleep and suspend?

3 Answers  


What is the need of serialize?

2 Answers   Wipro,


What are the different methods of identifying an object?

1 Answers  


What is TL and its use?

1 Answers  


What is the O/P of the below Code Snippet ? And how does it imply the concept of call-by-value/call-by-reference. (Note : Pls ignore syntx errors) public class One { sop ("Into One--"); } public class Two extends One{ sop ("Into Two--"); } public class Home { One a; Two t; public static void main(argv[]) { sop ("In Home--"); sop(One.a); sop(Two.a); sop(One.t); sop(Two.t); } }

2 Answers   Wipro,


what is Bootstrap loader program?

1 Answers   Rossell Techsys,


What is the use of Class.forName

20 Answers   HCL,


which type of objects reference will be given to client?

1 Answers  


can we write implementation for a method with in another method?

3 Answers   Cap Gemini,


what is the difference between System.out.println and out.println in java

10 Answers   CTS,


what is activation monitor and what is its job?

1 Answers  


Categories