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

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

Question

Given the definition of the Book class:

public class Book {
private int id;
private String name;
public Book(int id, String name) {this.id = id; this.name = names}
public int getId() { return id; }
public String getName() { return name; }
public void setid(int id) { this.id = id; }
public void setName (String name) { this.name = name; }

}

Which statement is true about the Book class?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

A.