Question 111 of 130 from exam 1Z0-809: Java SE 8 Programmer II

Question 111 of 130 from exam 1Z0-809: Java SE 8 Programmer II

Question

Given:

class MyClass implements AutoCloseable {
int test;
public void close() { }
public MyClass copyObject() { return this; }
MyClass obj = null;
try (MyClass obj
obji.test = 100;

obj = objl.copyobject()# // line ni

new MyClass()) {

,

System.out.printin(obj.test); // line n2

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.