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

Q1. A. Write note on "The class path Environment Variable". B. Which are different kinds of source code? Q2. A. How to create an interface? B. Why convert an applet to an application? Q3. A. How to use Media tracker Class. B. How to use string tokenizer class. Q4. A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on "The properties class" Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.

1 Answers  


Am chittibabu from vadavalli, My father name is nanjan.he is working in state bank of india at vadavalli, My mother name is ramal. She is house wife. My brother name is rajaram he is working in Privete Company. I was born on 25-january-1984 at bhavanisager in Erode District. I have completed my school in government higher secondary school bhavanisager. After that I came to coimbatore for higher study.i have joined Bsc computer science in sri ramalinga sowdambigai college of science and commerce, affiliated by bharathiyar university, coimbatore. In the same college, I have continued UG degree also. but I got a job in Systech infovation as a software programmer,so I discontinued Msc Degree.I have one and half years experience from this concern. Here I have completed two products; one is Tranport management solution for balaji goods carriers at tirupur. Another one is Embroidery Management Solution for Angel Embroidery at tirupur. After that I got an another job in metis technologies as senior software engineer. I have one year experience from this company.here I working in school management product.it is developing version by version.

3 Answers  


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

0 Answers  


What is the use of log4j and how to make use of that in a application?

2 Answers  


When to use the Collection Classes(HashSet, LinkedHashSet, TreeSet....etc) in real time scenario ?

1 Answers   Cap Gemini,






Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword

0 Answers   TCS,


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

0 Answers  


what is the difference between through and throws?

2 Answers   HCL,


I have include a jsp page by using <jsp:include page="/.../xyz.jsp"/> The thing is that the xyz.jsp page has its submit button.When i click on that button the whole main page get refreshed.But i want to refresh only the xyz.jsp page.How could i achive it so that i can only refresh the xyz.jsp not the main page page?

4 Answers  


What is need of DAO? Write one simple DAO example?

2 Answers   IBM,


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

4 Answers   Adobe,


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

0 Answers  


Categories