This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IBM's Mock Exam

 
Vivek Shrivastava
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 477
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vivek: I agree with you. There�s no valid answer.
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to all of u for making me clear.

regards
vivek
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic