How do you debug your java program?

Answers were Sorted based on User's Feedback



How do you debug your java program? ..

Answer / 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

How do you debug your java program? ..

Answer / aashish r. wadhokar

Java programs can be debug using Sysout statement of System
class and output of these statements can be find on console
in eclypse.
or catalina.out file of tomcat server
or we can configure our project's log file using log4j.jar file

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More Java J2EE AllOther Interview Questions

httt method

2 Answers   HCL,


whats the relation ship between LDAP and JNDI?

1 Answers  


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

0 Answers  


what is difference between struts1.2 and struts2.0

1 Answers  


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.?.

0 Answers   iGate,






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.

0 Answers  


waht are architecture of web application?

2 Answers  


Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?

1 Answers   HCL,


What are the types of interface used in the java collections? : java collections

0 Answers  


can u draw class/object diagram for ATM

0 Answers   HCL, Zycus Infotech,


what is difference between web server and application server?

1 Answers   L&T,


Which of the following declaration is wrong? int i=45; float j = 45.0; double k=45.0;

5 Answers   Adobe,


Categories