Why Static methods don't act upon instance variables ?

Discussion in 'Object Oriented Concepts' started by vbraojava, Sep 9, 2008.

  1. vbraojava

    vbraojava New Member

    Static Methods will be loaded on JVM whenever Class is loaded, but memory will be allotted to instance variables after creation of Object only not at the time of Class loading.

    - In case, if we are trying to access instance variable from Static Methods, when the time of loading Class, Static Methods are failed to load.

    Note : Whenever Class is loaded in JVM the Static Members (Static Variables, Static Methods, Static Blocks) will be loaded.
     
  2. anneroberts

    anneroberts Member

    DStatic methods can not anon admission any instance variables or methods. But they can admission them by application their article reference. Static methods may alike admission clandestine instance variables via a article reference.
     

Share This Page