aspose file tools*
The moose likes Beginning Java and the fly likes  java static Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark " java static " Watch " java static " New topic
Author

java static

Lucy Rai
Greenhorn

Joined: Dec 19, 2012
Posts: 8
please to reply about static in java deeply
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39425
    
  28
Fields: do they belong to the class? Do you want one copy and one copy only? Do you want access before any objects are created?
Methods: please search for “Campbell Ritchie Classification of Methods”. Something ending in 68 can be static.

In most cases, it is a mistake to make anything static unless you know exactly why it ought to be static. In order to compile is a very bad reason to make something static.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: java static