Which of the following lines of code, if inserted independently at Line 5, will cause the text within the ctherwise tag to display? (Choose all that apply)
D. books.add("Head First");
E. books = null;
Answer is BD,
I thought it would be E. Also the explanation gviven in the book is not satisfying. What is the correct answer?
posted 7 years ago
the answer is C and E. Maybe there is a typo!
A, B and D are wrong because all of them add something to the books list and the list is NOT empty.