what is difference between Exception and Error?

Answer Posted / md.tanweer alam

ERROR:-error may occur internaly in the program code through
the resources the program trying to access.
the source of error may be user input error such as giving a
wrong URL device erroe such as printer not ready physical
limitation such as disk full or memory not enough and code
error like arroay index out of bound trying to access an
empty stack and divide by zero error..
EXCEPTION:-all these above mention errors occuring in
abnormal condition called exception

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rmi and steps involved in developing an rmi object?

570


Objects or references which of them gets garbage collected?

533


Explain the difference between throw and throws in java?

552


How is treeset implemented in java?

494


What is the inheritance?

553






Explain inheritance in java?

555


Can you declare an interface method static?

586


How do you make an arraylist empty in java?

481


explain the concept of virtual method invocation in polymorphism in detail?

1719


How can I become a good programmer?

492


What are kinds of processors?

571


What is the use of jtable?

652


Do loops java?

556


What is the public method modifier?

546


what is synchronization? : Java thread

563