File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes constructors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

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


Puja S
Ranch Hand

Joined: Jan 06, 2005
Posts: 51

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 ?

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
You are correct puja ...

one more addition - top-level class may also have strictfp .
marc weber

Joined: Aug 31, 2004
Posts: 11343

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." ~Joe Strummer
I agree. Here's the link:
subject: constructors
jQuery in Action, 3rd edition