What is the difference between error and exception and
explain in simple words not whatever is given in the book.

Answers were Sorted based on User's Feedback



What is the difference between error and exception and explain in simple words not whatever is g..

Answer / muffy.jad@gmail.com

An error is an irrecoverable condition occurring at runtime.
Such as OutOfMemory error. These JVM errors and you can not
repair them at runtime.

While exceptions are conditions that occur because of bad
input etc. e.g. FileNotFoundException will be thrown if the
specified file does not exist. Or a NullPointerException
will take place if you try using a null reference.

In most of the cases it is possible to recover from an
exception

Is This Answer Correct ?    26 Yes 1 No

What is the difference between error and exception and explain in simple words not whatever is g..

Answer / shridhar shelake

Errors are born during compile-time and which is detected
by programmer while Exceptions are born during Run-Time and
which is not detected by developer.

Is This Answer Correct ?    16 Yes 5 No

What is the difference between error and exception and explain in simple words not whatever is g..

Answer / neha

errors are not expected to be caught.whereas exceptions can
be handled.Ex:system Failure is error whereas
arrayindexoutofbounds is exception.

Is This Answer Correct ?    8 Yes 0 No

What is the difference between error and exception and explain in simple words not whatever is g..

Answer / uv

Errors are generally seen at compile-time WHEREAS
Exceptions are seen at run-time.

Is This Answer Correct ?    15 Yes 10 No

What is the difference between error and exception and explain in simple words not whatever is g..

Answer / neelamadhab mallick

During compilation, JVM check for the error by matching 200
internal instruction code of JVM which is predefine in JVM
by SUN Mc. It is not a class rather than instruction code.
Exception is runtime error witch is handled by Exception
classes present in Java provided by Sun Mc.

Is This Answer Correct ?    5 Yes 1 No

What is the difference between error and exception and explain in simple words not whatever is g..

Answer / srinu

Error:-
Errors are occuried at compile time.These errors are araise
pure understanding the language. i.e small syantax
errors.its give an error at complite time.

Exception:-
It is unwanted ,unexpected event which distrubs the normal
folow of the program.its araise an at Runtime.

Is This Answer Correct ?    4 Yes 0 No

What is the difference between error and exception and explain in simple words not whatever is g..

Answer / vino

error:it will be occured when the human make mistake because
of not understand the proper basic syntaxes...exception:it
occurs due to some small memory space for larger values...

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the difference between a break statement and a continue statement?

0 Answers  


What’s the difference between unit, integration and functional testing?

0 Answers  


what is difference Between Core Java and advance java

60 Answers   HCL, HP, Sambalpur University, TCS, Vensai Technologies, Wipro,


1).what is the difference between below examples String s="vijay"; String s=new String("vijay");

12 Answers   Mascon, Satyam, TCS,


What is %02d?

0 Answers  


What are the advantages of java over cpp?

0 Answers  


I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in

0 Answers  


Write program to print Hello World and print each character address in that string and print how many times each character is in that string? Ex: H: 0 & 1 e:1 & 1 l :2,3,8 & 3 o:4,6 & 2 w:5 & 1 r: 7 & 1 d 9 & 1

7 Answers   Huawei, IBM,


What is onClassLoader in java?

5 Answers   Cap Gemini,


What collections you have worked on? Internal working of Hashmap?

1 Answers   Bravura Solutions,


Explain reverse a linked list recursive java solution?

0 Answers  


How does system arraycopy work in java?

0 Answers  


Categories