nerdexam
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

1Z0-803 question #34 exhibit

Options

  • Asc: class.Object
  • Bsc: class.SampleClass
  • Csc: class.AnotherSampleClass
  • Dsc: class.AnotherSampleClass

How the community answered

(52 responses)
  • A
    2% (1)
  • B
    12% (6)
  • C
    8% (4)
  • D
    79% (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.

Full 1Z0-803 Practice