wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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.
 
Consider Paul's rocket mass heater.
 
subject: what is the correct answer?
 
Similar Threads
A Generics and Collections Problem
Another Generics question
HashSet
Generics K&B doubt
K&B Self Test Pg 617, Q12- HashSet doubt