Results 1 to 3 of 3
Thread: help me with exception
- 12-14-2010, 08:05 AM #1
Member
- Join Date
- Dec 2010
- Posts
- 38
- Rep Power
- 0
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.
- 12-14-2010, 08:21 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 12-14-2010, 08:22 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Just by referring the Java Doc you can find more details about the exception that you can see on the output window.
Similar Threads
-
Exception in thread "main" java.lang Exception In InitializerError
By kenzo2009 in forum New To JavaReplies: 4Last Post: 10-25-2010, 07:42 PM -
About Exception
By suresh.sa in forum New To JavaReplies: 2Last Post: 10-18-2010, 08:49 AM -
Exception
By PhQ in forum NetworkingReplies: 11Last Post: 07-28-2010, 09:37 AM -
exception
By thamizhisai in forum Advanced JavaReplies: 9Last Post: 05-30-2008, 08:47 AM -
Trouble with factory method - unhandled exception type Exception
By desmond5 in forum New To JavaReplies: 1Last Post: 03-08-2008, 06:41 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks