Home » Oracle » 1z0-803 » What is the result?
Given:
What is the result?
A. null
B. compilation fails
C. Java.lang.NullPointerException
D. 0
Correct Answer: C
Explanation/Reference:
Explanation:
An array variable (here xx) can very well have the null value.
Note:
Null is the reserved constant used in Java to represent a void reference i.e a pointer to nothing. Internally it is just a binary 0, but in the high level Java language, it is a magic constant, quite distinct from zero, that internally could have any representation.
Download Printable PDF. VALID exam to help you PASS.
|
|