aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Classes" Watch "Classes" New topic
Author

Classes

Aru
Ranch Hand

Joined: Jul 20, 2000
Posts: 112
Hi ALl,
This is from the IBM Mock test. An answer along with an explantion is requested.
Which the following are legal for the top level class FROG ?
1. protected class Frog extends Animal
2. private class Frog extends Animal
3. transient class Frog extends Animal
4. native class Frog extends Animal
Thx
Aruna
Chitra Natarajan
Greenhorn

Joined: Jul 27, 2000
Posts: 13
Hi Aruna,
As I know, top level classes may not be private,protected. transient is applicable only for variables.
native is applicable only for functions ( to call a fn. of like c/c++).
So none of the answers are correct.
Originally posted by Aru:
Hi ALl,
This is from the IBM Mock test. An answer along with an explantion is requested.
Which the following are legal for the top level class FROG ?
1. protected class Frog extends Animal
2. private class Frog extends Animal
3. transient class Frog extends Animal
4. native class Frog extends Animal
Thx
Aruna

Aru
Ranch Hand

Joined: Jul 20, 2000
Posts: 112
Hi Chitra,
Thanks for ur explanation, That was the same thing what I thought too. But what to answer if such question is posed in the SCJP ? Should a answer be selected or can it be left blank....
Confused.
Aruna.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
On the real exam (but not IBM's apparently), there will always be at least one correct answer. So if you can't find one, keep looking.


"I'm not back." - Bill Harding, Twister
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Classes