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 |
What is the purpose of the wait() method?
Difference between sleep and suspend?
What is the need of serialize?
What are the different methods of identifying an object?
What is TL and its use?
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); } }
what is Bootstrap loader program?
What is the use of Class.forName
which type of objects reference will be given to client?
can we write implementation for a method with in another method?
what is the difference between System.out.println and out.println in java
what is activation monitor and what is its job?