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
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: 38803
    
  23
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java static