Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MK

Status
Not open for further replies.

javakadam

Programmer
Dec 18, 2003
1
IN
Please do tell me more about
identifing, understanding and evaluating
and to debug the errors in java.
(both compile time and runtime error).

What is the best methods or stratergy present to debug the java errors?
 
>>>> What is the best methods or stratergy present to debug the java errors?

Fix 'em !

Compile errors - the advice is simple - learn how to read the debug erorrs and info (ie identify the class, find the line and fix it).

Runtime errors - These are a little harder to debug, but the statck trace of the error should show you which class died, in which method - you can then start looking for code which could have thrown that particular error.

Obviously the best practice is write your code in a tight manner, catching any forseeable errors, and printing them out to the screen with helpful messages. This way, you will hopefully be in a situation where you never get errors which leave you scratching your head (yeah right!) !

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top