Exam 1z0-819 All QuestionsBrowse all questions from this exam
Question 154

Given:

What is the output?

    Correct Answer: D

    In the given Java code, the method analyze() with the parameter of type Object will be called. This is because in Java, arrays are objects, and therefore, the parameter nums which is of type int[] will be upcast to Object. Hence, the output will be 'I am an object.'

Discussion
OmnisumemOption: D

Tested: D.

d7bb0b2Option: D

arrays are object in java, so method call to object version overload method

APJ1Option: D

Tested: D

Ashan_OzlovOption: D

D Tested

[Removed]Option: D

D is correct.

StavokOption: A

Over cannot be resolved to a type A is correct

KiraguJohnOption: D

D is the correct answer