List three debugging techniques within the debugger that


1.  List three debugging techniques, within the debugger, that can be used to locate logical error in the Java code. For each of these tools, explain what purpose it serves, and how it relates to the debugging process.

2. Suppose you had to create an algorithm that chooses between several different processing paths, and the control variable was a discrete data type. What would be the best approach?

4.  You have in your program an ArrayList that contains employee names (strings) in arbitrary order. You need to display the employees ordered alphabetically by name. Provide detailed steps of how you plan to accomplish this task. You do not need to give correct Java code (a detailed pseudocode is sufficient) but indicate which method(s) and which Java class(es) you would use.

5. Suppose that you have an array of student scores (type double) called Scores. The values in the array are ordered from largest to smallest. You need to find the average score, and how many scores are less or equal to the average, and how many are greater than the average. Write a code fragment to accomplish it, or at the very least write a detailed plan (pseudocode).

6.  Do we need to format our program output? Does formatting only apply to numeric values? What about percent values and currencies? Give an example that uses the NumberFormat class in the java.text package that formats percent values.

7.  Classes are the blueprints of objects. What kinds of relationships exist among classes? Explain these relationships using some appropriate real-world examples. 

Solution Preview :

Prepared by a verified Expert
JAVA Programming: List three debugging techniques within the debugger that
Reference No:- TGS0670026

Now Priced at $70 (50% Discount)

Recommended (94%)

Rated (4.6/5)