Questions from Starting Out With Java


Q: What two questions should you ask to determine a class’s

What two questions should you ask to determine a class’s responsibilities?

See Answer

Q: How is a class like a blueprint?

How is a class like a blueprint?

See Answer

Q: Will all of a class’s actions always be directly mentioned

Will all of a class’s actions always be directly mentioned in the problem domain description?

See Answer

Q: You have programs that create Scanner, Random, and PrintWriter objects

You have programs that create Scanner, Random, and PrintWriter objects. Where are the Scanner, Random, and PrintWriter classes?

See Answer

Q: What does the new operator do?

What does the new operator do?

See Answer

Q: What values do reference variables hold?

What values do reference variables hold?

See Answer

Q: How is the relationship between an object and a reference variable similar

How is the relationship between an object and a reference variable similar to a kite and a spool of string?

See Answer

Q: You hear someone make the following comment: “A blueprint

You hear someone make the following comment: “A blueprint is a design for a house. A carpenter can use the blueprint to build the house. If the carpenter wishes, he or she can build several identica...

See Answer

Q: Write an if-else statement that displays the String objects title1

Write an if-else statement that displays the String objects title1 and title2 in alphabetical order.

See Answer

Q: In this chapter we used the metaphor of a kite attached to

In this chapter we used the metaphor of a kite attached to a spool of string to describe the relationship between an object and a reference variable. In this metaphor, does the kite represent an objec...

See Answer