Consider the following class definitions. public class Person { private String name; public String getName() { return name; } public class Book { private String author; private String title; private Person borrower; public Book (String a, String t) author - a; title - t; borrower null; } public void printDetails() { System.out.print("Author: author + Title: + title); if (1 missing condition */) { System.out.println(" Borrower: + borrower.getName()); 2 public void setBorrower (Person b) borrower b;) Which of the following can replace / missing condition so that the printDetails method CANNOT cause a run time error? Il borrower.equals(null) IL borrower I- null III. borrower.getName() != null I only B Il only С monly D I and I Il and Consider the following class definition public class Book private int pages; public int getPages() { return pages; ) // There may be instance variables, constructors, and methods not shown. > The following code segment is intended to store in maxpages the greatest number of pages found in any Book object in the array bookarr. Book[] bookken - ( initial values not shown); int maxPages - bookArr[0].getPages(); for (Book b: bookArr) A missing code Which of the following can replace I missing code */ so the code segment works as intended? If (b.pages > taxpages) А saxPages - b.pages Which of the following can replace /* missing code */ so the code segment works as intended? A if (b.pages > maxPages) { maxPages b.pages; } 00 if (b.getPages() > maxPages) { maxPages = b.getPages(); } С if (Book[b].pages > maxPages) { maxPages Book[b] .pages; } D if (bookArr[b].pages > maxPages) { maxPages bookArr[b].pages; 3 E if (bookArr[b].getPages() > maxpages) { maxPages bookArr[b].getPages(); 0 Consider the following class definition. public class SomeClass { private int x = 0; private static int y e; public SomeClass(int px) { X - PX; у++; } public void incrementY() { y++;) public void increment(int inc) { y +- inc;) public int getY() { return y; ) 1 The following code segment appears in a class other than SomeClass SomeClass first - new SomeClass(10); SomeClass second - new SomeClass(2e); Soneclass third - new SomeClass(30); first. incrementy(); second.incrementy(10); System.out.println(third.getY()); What is printed as a result of executing the code segment of the code segment is the first use of a SomeClass object? A What is printed as a result of executing the code segment if the code segment is the first use of a SomeClass object? A B 1 11 D 14 חח 3e