The Java program in buggy.java does not produce expected output. Write down the steps to debug it.

What will be an ideal response?


Compile the java CLASS file using gcj java compiler with the -g option. Now the same technique as those used for debugging C/C++ programs using gdb can be used on java.

Computer Science & Information Technology

You might also like to view...

What does the following statement declare? int *countPtr, count;

a. Two int variables. b. One pointer to an int and one int variable. c. Two pointers to ints. d. The declaration is invalid.

Computer Science & Information Technology

This is a type of coax cable.

What will be an ideal response?

Computer Science & Information Technology

Though you can write code for any of the life cycle event handlers, the most commonly used is which of the following methods?

A. onCreate() B. onStart() C. onStop() D. onResume()

Computer Science & Information Technology

Which of the following is the name of the file that is contains a two-column table used to mark words as indexed entries?

A) index B) master C) concordance D) XE

Computer Science & Information Technology