RE: What is the difference between Assertion and Exception?
Exception is a mechanism used by many programming language to describe what to do when something unexpected happens.Assertion is the way to test the certain assumptions about the logic of your program.
RE: What is the difference between Assertion and Exception?
There is no concept called Assertion present in Java. Exception is the program error which arises due to uncontrolable condition. This condition can be arised automatically from to program code(Eg. DataBase Connectivity File handling) or condition can be customized and customized exception can be thrown.
Raghu.
If there is a concept called Assertion please write about it