1Z0-808 Web TestEngine demo

Exit VCEDump 1Z0-808 Java SE 8 Programmer I
Question 35 of 58
0% complete
Q35 Single choice

Given:

public class Painting {

private String type;

public String getType() {

return type;

}

public void setType(String type) {

this.type = type;

}

public static void main(String[] args) {

Painting obj1 = new Painting();

Painting obj2 = new Painting();

obj1.setType(null);

obj2.setType("Fresco");

System.out.print(obj1.getType() + " : " + obj2.getType());

}

}

What is the result?

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in