Oracle
1Z0-803 · Question #34
Given: What is the result?
The correct answer is D. sc: class.AnotherSampleClass. Note: The getClass method Returns the runtime class of an object. That Class object is the object that is locked by static synchronized methods of the represented Note: Because Java handles objects and arrays by reference, classes and array types are known as reference types.
Working with Inheritance
Question
Given:
What is the result?
Exhibit
Options
- Asc: class.Object
- Bsc: class.SampleClass
- Csc: class.AnotherSampleClass
- Dsc: class.AnotherSampleClass
How the community answered
(52 responses)- A2% (1)
- B12% (6)
- C8% (4)
- D79% (41)
Explanation
Note: The getClass method Returns the runtime class of an object. That Class object is the object that is locked by static synchronized methods of the represented Note: Because Java handles objects and arrays by reference, classes and array types are known as reference types.
Topics
#runtime type#object type#polymorphism#getClass()
Community Discussion
No community discussion yet for this question.
