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

[192 byte] By [dhruva023a] at [2007-11-27 11:52:18]
# 1

> 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

OnBringera at 2007-7-29 18:43:35 > top of Java-index,Java Essentials,Java Programming...
# 2

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

srinivassa at 2007-7-29 18:43:35 > top of Java-index,Java Essentials,Java Programming...
# 3

> 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.

CeciNEstPasUnProgrammeura at 2007-7-29 18:43:35 > top of Java-index,Java Essentials,Java Programming...
# 4

thanks for the replay.

dhruva023a at 2007-7-29 18:43:35 > top of Java-index,Java Essentials,Java Programming...
# 5

> 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.

jverda at 2007-7-29 18:43:35 > top of Java-index,Java Essentials,Java Programming...