Page 1 of 1
RuntimeException v.s. Exception
Posted: Wed Jun 15, 2016 2:02 am
by Rasiand
Could any one clarify the difference between RuntimeException and Exception? In my opinion, every exception must happen at run time, and therefore, I think we only need RuntimeException. There is no need for Exception.
Re: RuntimeException v.s. Exception
Posted: Wed Jun 15, 2016 5:08 am
by Riddle
So, in your opinion,the difference between Exception and RuntimeException is that Exception is meant to happen not at runtime.
Re: RuntimeException v.s. Exception
Posted: Wed Jun 15, 2016 5:20 am
by Rasiand
This is just my understanding.
RuntimeException is there to specify normal exceptions.
Exception is there to handle bigger scope, with all types of exception.