Skip to content
Ravnary
A Knowledge Platform
Categories
Learn
Cheatsheets
Paths
Favourites
Review
Community
Colour theme
Light
Dark
System
Learn
Java
Objects
Polymorphism
Quiz
Q 01
/ 05
Advanced
Question 1 of 5. 0 correct, 0 incorrect.
A variable is declared with a parent type and holds a subclass object. Which of these are resolved from the declared type rather than from the object?
Choosing which constructor runs when the object is created
Calling a static method the subclass also declares
Reading a field the subclass also declares by the same name
Calling an instance method the subclass overrides
Check answer
Home
Learn
Paths
Saved
Community