what is difference between Exception and Error?
Answers were Sorted based on User's Feedback
Answer / steffy
ERROR:
Erroor will be occur in compile time.
EXCEPTION:
Exception will occured in running time.
| Is This Answer Correct ? | 2 Yes | 7 No |
Answer / milan kumar
Exception means abnormal condition which is occur in our
code during program execution.
but error means it can't handle by the system.for
example,thread dead,out of memory,overflow.
| Is This Answer Correct ? | 7 Yes | 14 No |
Answer / ved
Errors are the abnormal conditions which can not be handled
by your program and the program will immediately interrupt
while exceptions are those abnormal conditions which your
program can handle with the techniques of error handling.
Errors can not be handled and will stop uour program...
| Is This Answer Correct ? | 1 Yes | 8 No |
Answer / ankur bhargav
exception mins run time
error mins your logical error in you programming
| Is This Answer Correct ? | 2 Yes | 12 No |
Answer / 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 |
What is thread life cycle in java?
What is string data type?
what is meant by UP& DOWN casting in java?
What is the purpose of checked and unchecked exceptions in JAVA?
why would you use a synchronized block vs. Synchronized method? : Java thread
Why Static variable required in java?For ex,class A { static int a; int b; } Why static is required?
Name the packages in JDK?
How many arguments can a method have java?
Is hashset ordered?
How is Object Oriented Programming different from Procedure Oriented Programming?
For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green  White will have 1 Weight.  Red and Green carry no weights.  Shortest path is the path with less weight when you add up the weights in the path.
When is an object subject to garbage collection?