Thread
:
Static fields
View Single Post
#
10
(
permalink
)
04-22-2008, 04:43 AM
Eranga
Moderator
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 2,322
Quote:
Originally Posted by
javarishi
Static Methods Are Only For Less Memory Usage?
Why we need to declare a method as static?
Because, static methods get there data as parameters. Then do some processing using those parameters, without not keeping a reference to variables.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you?
Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.
Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Eranga
View Public Profile
Send a private message to Eranga
Find all posts by Eranga