"Default" means "package protected" - other classes in the same package can call those methods/fields, kind of the same as "protected".
The slight difference from "protected" is that inheriting classes in other packages cannot access the "package protected" methods/fields, only the "protected" and "public" ones. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Tom Baeyens > Sent: 04 January 2006 12:32 > To: jboss-development@lists.sourceforge.net > Subject: [JBoss-dev] basic java design question > > as all java developers, i was learnt to use private where possible. > took me quite a while before i found there was a default > access specifier... but out of habit i still kept typing 'private'. > > as all java developers lazyness wins in the end. so i > started to use the default access specifying more and more > for members and for methods. > > does anyone have a good reason why i should use 'private' > over the default access ? when i think of it, i can't find > any good reason. > probably i'm missing something obvious :-) > > regards, tom. > [EMAIL PROTECTED] > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep > through log files for problems? Stop! Download the new AJAX > search engine that makes searching your log files as easy as > surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick > _______________________________________________ > JBoss-Development mailing list > JBoss-Development@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jboss-development > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development