How can you debug the Java code?

Answers were Sorted based on User's Feedback



How can you debug the Java code?..

Answer / kishore kumar

All the above answers are not a valid answers for interview
purpose.
In the interview, you have to say:
we can debug the java code by using the log files.

Is This Answer Correct ?    11 Yes 4 No

How can you debug the Java code?..

Answer / shrads

By using F5 if we are working with java devlopment
environment.

Is This Answer Correct ?    4 Yes 1 No

How can you debug the Java code?..

Answer / kiran

jdb [ options ] [ class ] [ arguments ]

options
Command-line options, as specified below.
class
Name of the class to begin debugging.
arguments
Arguments passed to the main() method of class.

Is This Answer Correct ?    5 Yes 4 No

How can you debug the Java code?..

Answer / raghavendra

first you write a program in note pad.
after you save the program in "program name.jave"
after you check the java path and save the program correct
location after you start the compliation
compilation method:
javac program name.java
if any errors are generated again check the program and
remove the bugs
finally
java program name

Is This Answer Correct ?    3 Yes 2 No

How can you debug the Java code?..

Answer / 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

How can you debug the Java code?..

Answer / ravikiran(aptech mumbai)

by calling javac

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More Core Java Interview Questions

How do you include a string in java?

0 Answers  


Where the CardLayout is used?

1 Answers  


class a extends b { } class b extends a { } why java doesn't support cyclic pls explain me with example

3 Answers   Wipro,


What happens when a main method is declared as private?

22 Answers   DELL, Infosys, L&T, Sun Microsystems,


How to find the given number is a prime number or not by getting input from the user

0 Answers  


What is the platform?

0 Answers  


what is the diffrence between class and object?

5 Answers  


What do you mean by aggregation?

1 Answers  


What are the restriction imposed on a static method or a static block of code?

0 Answers  


Can the garbage collection be forced by any means?

0 Answers  


What are the steps that are followed when two computers connect through tcp?

0 Answers  


What is a java predicate?

0 Answers  


Categories