Questions from Starting Out With Java


Q: Why is it critical that accumulator variables are properly initialized?

Why is it critical that accumulator variables are properly initialized?

See Answer

Q: What is the “divide and conquer†approach to problem

What is the “divide and conquer†approach to problem solving?

See Answer

Q: What is the difference between an argument and a parameter variable?

What is the difference between an argument and a parameter variable?

See Answer

Q: Explain what is meant by the phrase “pass by value

Explain what is meant by the phrase “pass by value.â€.

See Answer

Q: What is the difference between a class and an instance of a

What is the difference between a class and an instance of a class?

See Answer

Q: When the same name is used for two or more methods in

When the same name is used for two or more methods in the same class, how does Java tell them apart?

See Answer

Q: What is an accessor method? What is a mutator method?

What is an accessor method? What is a mutator method?

See Answer

Q: If a class has a private field, what has access to

If a class has a private field, what has access to the field?

See Answer

Q: Write an iterative version (using a loop instead of recursion)

Write an iterative version (using a loop instead of recursion) of the factorial method shown in this chapter.

See Answer

Q: Assume a program named MailList.java is stored in the DataBase

Assume a program named MailList.java is stored in the DataBase folder on your hard drive. The program creates objects of the Customer and Account classes. Describe the steps that the compiler goes thr...

See Answer