In most Java classes, the keyword ____ precedes each data field, and the keyword ____ precedes each method.

A. public, public
B. private, private
C. public, private
D. private, public

Answer: D

Computer Science & Information Technology

You might also like to view...

Name three text effects available in WordArt

What will be an ideal response?

Computer Science & Information Technology

Which of the following statements is false?

a. A primitive-type variable can store exactly one value of its declared type at a time. b. Primitive-type instance variables are initialized by default. c. Variables of types byte, char, short, int, long, float and double are initialized to 0. d. Variables of type boolean are initialized to true.

Computer Science & Information Technology