Read and Understand Stack trackes:
*
Read Understand Stacktraces
A stack trace is a great aid when debugging a program. You will get a stack trace when your program throws an Exception, and sometimes when the program terminates abnormally.