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
What is deque in the java collections framework? : java collections
What are the types of java collections? : java collections
What is an algorithm in java collection framework? : java collections
What are the types of interface used in the java collections? : java collections
What are the classes in the java collection framework? : java collections
What is the Spring2.5 MVC Navigation flow?
What are the different types of ways where you can iterate over a list? : java collections
my interviewer asked me what technical specification you used how to answer that question
What are the different types of classes implemented in the set interfaces? : java collections
Should we create system software ( e.g operating system ) in java ?
Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance
What is java collection? : java collections
What are maps interfaces in the java collections? : java collections
What are the main classes of the list interfaces? : java collections
What are the differences between the java collection and the java list? : java collections