Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Final Mock Test Question 26 Head First and Servlets

 
Mohit G Gupta
Ranch Hand
Posts: 634
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Final Mock Test Question 26 Head First and Servlets




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)

A. books.add("");
B. books.add(null);
C. books.clear();
D. books.add("Head First");
E. books = null;

Correct answer are B,D

Options D,E makes the result of EL

return false and will cause the text
within the ctherwise tag to display.
Moreover,

will cause the El to return True.

Correct answer should be D,E

 
Mohit G Gupta
Ranch Hand
Posts: 634
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please Help me fellow ranchers.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2276
81
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mohit,

The correct answers should be C and E, check the errata

Regards,
Frits
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic