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 is entry in java?

537


What is array and arraylist in java?

533


Differentiate between overriding and overloading cases?

597


Which methods are used during serialization and deserialization process?

555


Can we use a switch statement with strings?

551






worst case complexities of Quick sort and Merge sort.

607


How many types of exception can occur in a java program?

538


What is the longest unicode character?

695


What does sizeof return?

561


Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?

550


Explain about sets?

572


How to invoke external process in java.

571


What is illegal identifier in java?

538


What is remote method invocation (rmi)?

615


How many decimal digits is 64 bit?

536