Hi Swati ... I'd prefer you check out the Java Language Specefication(JLS) beacuase I'm not sure of Mike's explanation that static variables are part of the class object (this violates the concept of static members at all).
Mostafa: perhaps it would help if Mike had said "a Class object" instead of "a class object". He's not talking about an instance of the class that is declaring the static variable (let's call it "MyClass") - he's talking about an instance of the class Class, an instance which represents MyClass. When MyClass is loaded, a single Class object is created, called MyClass.class. This is where static fields are stored. [ February 13, 2005: Message edited by: Jim Yingst ]
"I'm not back." - Bill Harding, Twister
Joined: Mar 13, 2004
Thanks for spotting the confusion. We could have gone back and forth for a week without you.