File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
Programmer Certification (SCJP/OCPJP)
Joined: Jan 06, 2005
Jan 06, 2005 21:59:00
Constructors can have any access modifiers ( public,protected,default and private ). Can anybody correct me if I'm wrong ?
Also, Top-Level class can be public,default,final and abstract. Please correct me if I'm wrong ?
Joined: Oct 11, 2004
Jan 06, 2005 22:05:00
You are correct puja ...
one more addition - top-level class may also have strictfp .
Joined: Aug 31, 2004
Jan 06, 2005 22:13:00
Also note that "abstract" cannot be used in conjunction with "final" or "strictfp."
(And, of course, "default" is not technically a modifier.)
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award."
I agree. Here's the link:
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014