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: Feb 24, 2001
Apr 30, 2001 03:21:00
can we have two toplevel classes,one with protected access specifier and the other with the public access specifier?.
public is very much possible, please tell me about the other class.
Joined: Oct 06, 2000
Apr 30, 2001 08:50:00
No a toplevel class can not be protected.
it can be public,final, abstract or no access modifier.but cant be protected.
I agree. Here's the link:
protected Vs default access modifiers?
Enum member variable access
Protected Access Specifier
anyone could explain this?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014