What is the actual content of the variable generator?
Random generator = new Random();
null
An instance of the class Random
Random
A reference to the class Random
A reference to an instance of the class Random
How do we call the properties that objects have?
Actions
Attributes
Classes
Behaviors
What is the most correct definition of an object oriented application?
A collection of instances where references to objects are kept
An application that makes use of classes
An application that does not make use of primitive datatypes
A collection of objects that communicate by sending messages to each other
What is stored in the variable hello?
hello
A String object
String
A reference to an object of the class String
The text "Hello World"
"Hello World"
An instance of the class String
What are the correct names of the different parts of the following statement.
Option A
1 = variable name 2 = type 3 = assignment operator 4 = class instance 5 = terminator
Option B
1 = type 2 = variable name 3 = assignment operator 4 = class instance 5 = terminator
Option C
1 = type 2 = class instance 3 = assignment operator 4 = variable name 5 = terminator
Option D
1 = class instance 2 = variable name 3 = assignment operator 4 = type 5 = terminator
Last updated 6 years ago