Originally posted by sonali rao:
Thanks for the quick reply.
I have something to clarify. you said public static fields are accessible. Is it because the class access modifier is public? did i get this right?
Yes, if the class is declared as public and
properly imported, you can use its static public fields and methods outside of the package. Even if its constructor is private (Math class is a good example of that).