How do you debug your java program?

Answer Posted / vidhya

1. Debugging Java program is done using Sysout's.
2. If an error occurs and we are not able to guess where it
occurs, Sysout can be given line by line and checked.
3. One can use LogWriter/LogManager which will also help us
write into a file and see the error/exception.
4. One needs to import log4j.jar and log4j.xml/properties
file where the logfile name and path is specified.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.

1577


What is deque in the java collections framework? : java collections

533


who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.

1807


What are the different types of features of the java collections framework? : java collections

559


HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS

1570






What are the interfaces in java collections? : java collections

600


What is the difference between comparable and comparator in java.util pkg?

579


What is an algorithm in java collection framework? : java collections

564


How do I find jre path in windows?

515


Which java collection class can be used to maintain the entries in the order in which they were last accessed?

548


What is the enumerator of the java collection framework? : java collections

555


What are the types of the main implementing classes in the map interfaces? : java collections

600


What are the considerations to be made in case of loops in java ?

556


In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?

1669


What are the different types of ways where you can iterate over a list? : java collections

567