a very tricky question...



In java in object only the nonstatic members are present & the static
members donot reside in the object but we are accessing static members
using object reference technique.

since the static member do not reside in the object then how we are
accessing it using object reference...
.



Relevant Pages

  • Re: Problems with multidimensional arrays and global variables
    ... > Well, I'm not good at Java, learning as I'm going, so this is getting me ... So what am I supposed to do to resolve this? ... static members do not belong to an object. ...
    (comp.lang.java.help)
  • Re: Static Versus Non Static
    ... understanding of good language design, and particularly of OO programming, ... which gave rise to Java. ... there is a syntax/semantics for refering to static members ... Most Java programmers agree that it is better to pretend that the sharing idea ...
    (comp.lang.java.programmer)
  • Re: ASP.NET, threading and static member.
    ... >> Each time an HTTP request is received by IIS, ... Then does the ASP.NET worker process in turn start a new ... >> An other question is related to static members. ... If I remember well, in Java, static member ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Static vs Non-static
    ... static members do not have access to non static members of the same ... nonstatic members via the instance. ... Foo foo1 = new Foo; ... public void Method1() ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: ASP.NET, threading and static member.
    ... >> Each time an HTTP request is received by IIS, ... Then does the ASP.NET worker process in turn start a new ... >> An other question is related to static members. ... If I remember well, in Java, static member ...
    (microsoft.public.dotnet.languages.csharp)