Answer Posted / chandra sekhar dash
Exceptions are also one kind of errors which we can hadle at
both compile time and run time by using try and catch
blocks.
These are two types: Compile time and runtime.
Sql and IO Exceptions come under compile time
ArrayIndexOutofbounds and NullPointer these come under
runtime Exceptions
Errors are the problems which we cant hadle, like stack
overflow and memoryoutofbounds etc.,these generally comes at
compile time
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What happens if constructor is private?
In case of inheritance what is the execution order of constructor and destructor?
Why collection doesn’t extend cloneable and serializable interfaces?
What happens if we don’t define serial version uid?
Where is the singleton class used?
Why map is used in java?
Differences between traditional programming language and object oriented programming language?
How is tree Mirroring implemented?
What are the four corner stones of oop?
what is synchronization and why is it important? : Java thread
Can we have multiple catch block for a try block?
What is bubble sorting in java?
What is exception propagation?
What are basic keywords?
what is heap memory?