aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "IBM Watch "IBM New topic
Author

IBM's Mock Exam

Vivek Shrivastava
Ranch Hand

Joined: Jun 03, 2000
Posts: 277

Hi,
Following question is from IBM's mock exam and i don't thisn any of the answers is valid.
what do u think?
Q#
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

regards
vivek
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
Vivek,
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.
regds
maha anna
Vivek Shrivastava
Ranch Hand

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

regards
vivek
 
wood burning stoves
 
subject: IBM's Mock Exam
 
Similar Threads
Classes
Exceptions
bout top-level class
Mock Questions
Top-level class modifiers?