aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Dan Chisholm question about abstract classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Dan Chisholm question about abstract classes" Watch "Dan Chisholm question about abstract classes" New topic
Author

Dan Chisholm question about abstract classes

Maria Garcia
Ranch Hand

Joined: Jul 14, 2002
Posts: 86
Which of the follow are true statements.
a. Any named class can be declared abstract.
b. An incompletely implemented class must be declared abstract.
c. A local class can be declared abstract.
d. An abstract class can be instantiated.
e. An abstact class is implicitly final.
f. An abstact class must declare at least one abstract method.
g. An abstact class can not extend a concrete class.
h. None of the above.
Is letter a correct ? What about classes that are already declared as final ? help! im confused


SCJP 1.4
Dan Chisholm
Ranch Hand

Joined: Jul 02, 2002
Posts: 1865
A class that is not anonymous can be declared abstract as long as it is not also declared using a modifier that is not compatible with the abstract modifier. Maybe a better way to ask that same question would be as follows.
a. An anonymous class can be declared abstract.
The correct answer would be "false".
To avoid confusion I think I'll change answer option 'a' to the above in the next version of the exam.


Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
Maria Garcia
Ranch Hand

Joined: Jul 14, 2002
Posts: 86
Thanks Dan.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dan Chisholm question about abstract classes