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,


wnet use DAO design in u r project?

1 Answers   Godrej,


what is mean by hasing and maping in java platform and advantage?

0 Answers   CTS,


what are callback methods?

3 Answers   iFlex,


what is diff string and stringbuffer

7 Answers   CTS, HCL,






what is java virtual machine

4 Answers  


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

5 Answers   Adobe,


How to use ANT?

2 Answers  


What are the uses of the set interfaces in the java collections? : java collections

0 Answers  


how to deploy the web application ?

2 Answers   Accent,


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

0 Answers  


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

0 Answers  


Categories