
04-18-2008, 12:53 PM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 2,338
|
|
Thanks Sanjeev,
You make a sense here for all of readers of this thread. Allocating memory. Even Java comes with automatic garbage collection, in real world application where hundreds of classes are involved, there can be a memory issue at all.
If you instantiation a object reference, each time memory is allocating.
Because of this reason also, I recommend to use the class name to refer static fields.
Any comments. 
__________________
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.
|