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
Explain abstract class in java?
How many threads can java run?
What are default methods ?
Is ruby built on java?
What is visibility mode?
What is the best way to findout the time/memory consuming process?
Why hashset is used in java?
Which are the two subclasses under exception class?
Is java call by reference?
What is return code?
What is difference between jdk,jre and jvm?
What 4 doubled?
What is public/private protected in java?
hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea
Why we use methods in java?