Search:

Type: Posts; User: helloworld922

Search: Search took 0.16 seconds.

  1. Replies
    9
    Views
    1,208

    Re: Noob here forgive me(static question)

    I am trying to clarify the OP's original remark:



    This is an incorrect assumption of how static works. The simplest way to think of static is that it belongs to the class, not an instance of...
  2. Replies
    9
    Views
    1,208

    Re: Noob here forgive me(static question)

    It's irrelevant because it doesn't matter if weight/age are pointers/references or not. They shouldn't be, but Java's memory model is all screwy and I'd have to look at a the JVM specs in detail to...
  3. Replies
    9
    Views
    1,208

    Re: Noob here forgive me(static question)

    @KAJLogic stack/heap memory is irreverent here.

    I would take syed's advice and read more about what static does. See: Understanding Instance and Class members.
Results 1 to 3 of 3