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

what are advantages of HQL? what are advantages of Native SQL? what are advantages of Criteria API?

1 Answers   TCS,


who should use JNDI?

1 Answers  


can u draw class/object diagram for ATM

0 Answers   HCL, Zycus Infotech,


when exactly should we use throws ,and wen exactly should we use the try and catch for exceptional handling

0 Answers  


How to implement or use the singleton class in java?

3 Answers  


In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?

2 Answers   Cap Gemini,


What are the queues in the java collection framework? : java collections

0 Answers  


How do you debug your java program?

2 Answers   HCL, Inforica,


HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS

0 Answers  


Write a postfix expression to (a*(b+c/d)*d-e)

4 Answers   Adobe,


what is the diffrence between insurance and telecom domain?

1 Answers  


"Sun Certified Java Programmer" This is one String , we need to print SCJP, write the java code dynamically? pls reply this questions

6 Answers   Photon,


Categories