File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes IBM's Mock  Exam 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 "IBM Watch "IBM New topic

IBM's Mock Exam

Vivek Shrivastava
Ranch Hand

Joined: Jun 03, 2000
Posts: 277

Following question is from IBM's mock exam and i don't thisn any of the answers is valid.
what do u think?
Which of the following declarations of a top-level class Frog are legal, assuming Animal is an existing class?
1. protected class Frog extends Animal {
2. private class Frog extends Animal {
3. transient class Frog extends Animal {
4. native class Frog extends Animal

Marcela Blei
Ranch Hand

Joined: Jun 28, 2000
Posts: 477
Vivek: I agree with you. There�s no valid answer.
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Yes. For 'Top-level' ALL options given are not valid. Is there any explanation/answer given from IBM site ?
For your information, in Sun's real SCJP exam there is no type of qstn like above. We HAVE TO ANSWER ALL qstns. If none of the given answers are correct, there may be another option like 'none of the given are correct' among the given answers. I also heared from some people very long back in Sun's SCJP exam there was a typo in the code, and we have to assume that typo is not there and answer. People who DID NOT select any answer were not given credit. I SHOULD NOT DISCUSS the actual qstn here. So I am just giving you an idea of how we should take the actual exam.
maha anna
Vivek Shrivastava
Ranch Hand

Joined: Jun 03, 2000
Posts: 277
Thanks to all of u for making me clear.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: IBM's Mock Exam
Similar Threads
Top-level class modifiers?
bout top-level class
Mock Questions