Static and Non-Static Method!!
hi,
i have a little question, which method is better, and doesn't decrease the speed of my application on client machine.
Static methods, or Non Static method.
thanks
hi,
i have a little question, which method is better, and doesn't decrease the speed of my application on client machine.
Static methods, or Non Static method.
thanks
> hi,
>
> i have a little question, which method is better,
depends on the situation
and
> doesn't decrease the speed of my application on
> client machine.
neither
static belongs to the class, rather than to an instance of the class
The associated object is the Class object for static methods and the object instance for non-static methods
the following link might help you
http://today.java.net/pub/a/today/2003/12/30/staticsSQ1.html
> i have a little question, which method is better, and
> doesn't decrease the speed of my application on
> client machine.
I think questions like those are a good sign for a both non-performing and ill-designed application.
> static belongs to the class, rather than to an
> instance of the class
> The associated object is the Class object for
> static methods
No. There is no associated object for static methods.