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: 36508
    
  16
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java static
 
Similar Threads
what is the difference between static variable and static block
Static in java
What is the use of static block
difference between static local variables and static global variables.
When to make a class holding state static?