Answer Posted / shabana
n general error is which nobody can control or guess when it
occurs.Exception can be guessed and can be handled. In Java
Exception and Error are sub class of Throwable.It is
differentiated based on the program control.Error such as
OutOfMemory Error which no programmer can guess and can
handle it.It depends on dynamically based on architectire,OS
and server configuration.Where as Exception programmer can
handle it and can avoid application's misbehavior.For
example if your code is looking for a file which is not
available then IOException is thrown.Such instances
programmer can guess and can handle it.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which is the class in java?
How many bytes is string in java?
Which class contains a method: cloneable or object?
Are variables stored in ram?
What is the final access modifier in java?
Explain wrapper classes in java?
Can we rethrow the same exception from catch handler?
What does the three dot emoji mean?
What is methodological theory?
What are the fileinputstream and fileoutputstream?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
What is stored procedure. How do you create stored procedure ?
What does ide stand for?
What is the meaning of course?
What are the methods of object class ?