How can you debug the Java code?

Answer Posted / gyana

If you want to debug java code, first you have to know at
what platform you use to write the java codes.

If you are using Textpad for writing java code ,then you
have to first save this file as "filename.java".Where the
file name should be same as the class which contain the
main method .Then go to command promot and type javac
filename.java to compile the programme.then if there is no
error then type java filename.In other way you just press
ctrl+1 to compile and ctrl+2 to debug.

Then if you are working on the netbeen
(Java software) then you have to only press F5 to debug the
project.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the library functions in java?

537


What is the r character?

576


What is getclass () getname () in java?

665


Explain about complier design(phases)

610


Difference between notify() method and notifyall() method in java?

535






Explain how to convert any java object into byte array.

535


Differentiate between class and structure.

616


What is array and arraylist in java?

513


How to make a non daemon thread as daemon?

532


What is the private method modifier?

562


what is inner class in java?

613


What is a memory leak in java?

526


What are the restrictions imposed on method overriding?

536


What are the main features of java?

512


What is a parameter example?

514