Multiple Choice
Instance data for a Java class
A) are limited to primitive types (e.g., int, float, char)
B) are limited to Strings
C) are limited to objects(e.g., Strings, classes defined by other programmers)
D) may be primitive types or objects, but objects must be defined to be private
E) may be primitive types or objects
Correct Answer:

Verified
Correct Answer:
Verified
Q17: A GUI container is an object that
Q18: An object should be encapsulated in order
Q21: To define a class that will represent
Q22: Having multiple class methods of the same
Q24: All Java classes must contain a main
Q25: An Employee will have a name, social
Q26: A method defined in a class can
Q29: A variable whose scope is restricted to
Q47: Defining formal parameters requires including each parameter's
Q50: Java methods can return more than one