help me with exception
hi , all , i am weak in handling the exceptions, i can write the programs in java quite easily but when it comes to debugging, i am nill, i dont know anything how to know where i am getting err., i hear ppl talking abt stack overflow etc, but i don't know their meaning, btw, what is stack overflow ??
also i see the big exceptions shown in the output window i just know the meaning of first line, i.e the name of the exceptions but don't know abt what is written after that, plz help me with this.
For the first question, in simple terms stack overflow is something like memory usage too high and it's not enough assign amount for that operation. But actually you have to learn a lot there.
Exceptions are errors in your code, could be compile time or runtime. Say for an example you are reading a file in Java. You set the file name to something wrong, or something not exist. But when you compile the code compiler not check that file is exist or not. So no errors at all. Then you run it, what happen? The file you specified is not found by the VM. As a result end with an error.
Just by referring the Java Doc you can find more details about the exception that you can see on the output window.