Which four are object references?

Given:
1. class Variables {
2. int i;
3. String s;
4. Object o;
5. String g = null;
6. Integer y;
7. char c;
8. }
Which four are object references? (Choose four.)

Given:
1. class Variables {
2. int i;
3. String s;
4. Object o;
5. String g = null;
6. Integer y;
7. char c;
8. }
Which four are object references? (Choose four.)

A.
c

B.
i

C.
s

D.
g

E.
y

F.
o



Leave a Reply 0

Your email address will not be published. Required fields are marked *