How can you debug the Java code?
Answers were Sorted based on User's Feedback
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 |
Answer / shrads
By using F5 if we are working with java devlopment
environment.
| Is This Answer Correct ? | 4 Yes | 1 No |
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 |
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 |
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 |
What is a class ?
Do I need java on my pc?
What is Java Shutdown Hook?
What is a cup of java?
steps to connect with Oracle Databse using TYPE-2 Jdbc driver.
is memory to the abstract class allocated ..or objects not instantiated
What is a method in coding?
why java is better then .net?
all are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined classes and we can extend atmost one class so each class can extend more than one class so java supports multiple inheritance?i am confused with this,pls any one explain me.
What is the relationship between a method?s throws clause and the exceptions that can be thrown during the method?s execution?
what type of questions asked for barclays technologies pune please send urgent
Why javac is not recognized?