Question 58 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question 58 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question

Given the code fragment:

public class Person {
String name;
int age = 25;

public Person(string name) (
this (); //line ni
setName (name)

}

public Person(string name, int age) {
Person (name) ; //line n2
setage (age) i

}

//setter and getter methods go here

public string show() {
return name +" "

+ age + + number +

}

public static void main(string[] args) {
Person pl = new Person("Jesse");
Person p2 = new Person("Walter", 52);
system, out. print1n (pl.show())#
system. out. print1n (p2.show()) i

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.