what is difference between Exception and Error?

Answer Posted / vinay

Exceptions can be system defined or CAN BE USER DEFINED
(means user can enforce exceptins) whereas run time errors
are thrown by system only.

Is This Answer Correct ?    13 Yes 30 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are data types important?

541


Is string is a class in java?

525


How do you read a char in java?

463


what do you mean by marker interface in java?

547


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

841






What is the meaning of 3 dots in java?

682


What is a condition in programming?

560


How is garbage collection controlled?

736


Why null value is used in string?

531


What is java object name?

551


Write a function to find out longest palindrome in a given string?

595


Can a java program have 2 main methods?

549


How do you clear a list in java?

604


What is difference between jdk,jre and jvm?

571


How do you add spaces in java?

514