Rookie question - about the class access specifier

Category: Java SE
 
ht121402
2009-03-31 10:04:08

Sponsored Links
protected class Untitled4 {

public Untitled4 () {
}
}
Error #: ; modifier protected not allowed
ask why not use the protected modifier? The default modifier class should be protected, right?

Sponsored Links

lgb571
2009-03-31 10:10:49
inner classes can only be modified with the protected and private Oh, protected class default is not modified, but the friendly ------ 'friendly', it said in a package available.
somebabytina
2009-03-31 10:24:04
agree with the above statement
IkarusZhW
2009-03-31 10:31:38
modifiers conflict
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.