Question: Given class Book. Choose the CORRECT statement to use booklist. class Book { private String title; public void set(String t) {title = t;} public String

Given class Book. Choose the CORRECT statement to use booklist. class Book { private String title; public void set(String t) {title = t;} public String get() {return title;} } public class BookApp { public static void main() { public class BookApp { public static void main() { Book booklist[] = new Book [4]; O booklist.title = "Science": O booklist[0].get(Science); O booklist().set(); O booklist[3].get()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
