This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Final Mock Test  Question 26 Head First and Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Final Mock Test  Question 26 Head First and Servlets" Watch "Final Mock Test  Question 26 Head First and Servlets" New topic
Author

Final Mock Test Question 26 Head First and Servlets

Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634

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


OCPJP 6.0 93%
OCPJWCD 5.0 98%
Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634

Please Help me fellow ranchers.
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1529
    
  22

Hi Mohit,

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

Regards,
Frits
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Final Mock Test Question 26 Head First and Servlets
 
Similar Threads
HFJS (V2) Final Mock Question 26 is wrong?
HFSJ 2nd edition Mock exam questions 6, 11,26,34,49 and 69
Question 26 of HFSJ Final mocktest
HFSJ mock exam 2 Question -Standard Actions
Question regarding answers in HFSJ 2nd ed mock exam