What is the result?

Given:
package p1;
public class Test {
static double dvalue;
static Test ref;
public static void main(String[] args) {
System.out.println(ref);
System.out.println(dvalue);
}
}
What is the result?
A. p1.Test.class
0.0
B. <the summary address refrenced by ref>
0.000000
C. Null
0.0
D. Compilation fails
E. A NullPointerException is thrown at runtime

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.