The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

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:

You misunderstood my posting...

Posted by Kishori Sharan on April 28, 2001 at 2:37 PM

Sir, who prevents you defining two public classes in two different .java files and then share the static variables. I think you misunderstood my posting. So, define two public classes in two compilation unit and then you can use a static varibles value stored in one public class in another.

Thanks
Kishori



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us