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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Constructors" Watch "Constructors" New topic


Puja S
Ranch Hand

Joined: Jan 06, 2005
Posts: 51

There was this question :

Q23 Which of the following modifiers are allowed in constructor?
A1 private
A2 default
A3 public
A4 static

The answer was A1 and A3......Why not A2 also ?

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
default is not a modifier . it is just a access specifier or access level .
I agree. Here's the link:
subject: Constructors
It's not a secret anymore!