![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
When u declare a variable or method to be static, all objects in that class can use that variable or method. But if u want other classes to be able to use that variable or method as well, even if they are not in the same package, u have to declare it as beeing public. Then u have to import that class in the class where u have to use the static variable or method.
Replies: |
Sponsored Links
|