1) The Class class is at the top of the Java inheritance hierarchy. Select one:
ID: 674398 • Letter: 1
Question
1)
The Class class is at the top of the Java inheritance hierarchy.
Select one:
True
False
The Class class is at the top of the Java inheritance hierarchy.
Select one:
True
False
2)
Java allows you to create polymorphic references using inheritance or using interfaces.
Select one:
True
False
3)
All classes in Java are directly or indirectly subclasses of what class?
Select one:
Wrapper
String
Reference
this
Object
None of the above
4)
Which of the following is true regarding every Java class that you create from scratch?
Select one:
Any class I write classes can have 0 or 1 parent classes and any number of child classes.
Any class I write must have 1 child class but may have any number of parent classes.
Any class I write must have 1 parent class and may have at most a single child class.
Any class I write must have 1 parent but may have any number of child classes.
Any class I write can have any number (0 or more) of parent classes and any number (0 or more) of child classes.
5)
In order to determine the actual type that a polymorphic variable refers to, the decision is made
Select one:
by the programmer at the time the program is written.
by the user at run time.
by the Java run-time environment at run time.
by the compiler at compile time.
by the operating system when the program is loaded into memory.
Explanation / Answer
3
Wrapper
1
True
5
by the operating system when the program is loaded into memory.
2
true
4
Any class I write must have 1 child class but may have any number of parent classes(not sure)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.