Just grab an ebook and read it.racool said:can u post some mor info abt java programin
Anusha said:Exceptions are mostly runtime errors.
Eg: You can convert String str = "55" to int by using
int x = Integer.parseInt(str);
but if str = "a", you can't convert it to an integer. Then it will give an exception called NumberFormatException
![]()

kamali said:What is java exception ? please give me a simple example.
![]()
![]()
![]()
sri_lion said:Exceptions are situations that's normally occurs when executing certain logics that are not normal or typical.
For example:
In Programming any number divided by 0 would be infinity,
(if you are familliar with C programming you would recall that if you try dividing numbers by 0 the program runs forever! else you can try this in your windows calculator where it will give you a "cannot calculate" message)
but in Java it doesn't happen.. instead it recognize the situation and "catch it" these kind of situations are called an exceptions!! And that "catching" is called Exception Handling!!
kamali said:Wow ur a good teacher. I got a clear picture about exception.![]()
![]()
![]()
Thank u very much.
Yeah, not the thing for you I supposeprasadana2 said:m... its programming..
