English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

This is a question for the Java 2 Standard Edition.

2006-06-16 04:20:03 · 2 answers · asked by tjhauck2001 2 in Computers & Internet Programming & Design

2 answers

yeah, the only difference between the default and public specifier is that default can only be accessed in the same package whereas public can be accessed in other packages too.

2006-06-16 05:29:30 · answer #1 · answered by me 4 · 1 0

If you don't specify that a member or method is public, protected, or private, that member or method is public to the package. The method or member can only be accessed by other classes in the same package.

2006-06-16 11:58:46 · answer #2 · answered by Kevin L 1 · 0 0

fedest.com, questions and answers