my dog learned polymorphism
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes what is the correct answer? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply 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
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9189
    
    2

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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: what is the correct answer?
 
Similar Threads
K&B Self Test Pg 617, Q12- HashSet doubt
HashSet
A Generics and Collections Problem
Generics K&B doubt
Another Generics question