This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes what is the correct answer? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "what is the correct answer?" Watch "what is the correct answer?" New topic
Author

what is the correct answer?

Neha Daga
Ranch Hand

Joined: Oct 30, 2009
Posts: 504
question is from www.certcrunch.com





Which of the following occur at least once when the code is compiled and run? (Choose all
that apply.)


A. Adding Hans

B. Adding Lotte

C. Adding Jane

D. Total: 3

E. Total: 5

F. The code does not compile.

G. An exception is thrown at runtime.

SCJP 1.6 96%
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Do you have anything specific that you didn't understand in the question?? A,B,C and E seem the correct answer to me...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Neha Daga
Ranch Hand

Joined: Oct 30, 2009
Posts: 504
they say the answer is f.
Neha Daga
Ranch Hand

Joined: Oct 30, 2009
Posts: 504
never mind...I run that program and websites answer is wrong.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: what is the correct answer?
 
Similar Threads
Another Generics question
HashSet
Generics K&B doubt
K&B Self Test Pg 617, Q12- HashSet doubt
A Generics and Collections Problem