aspose file tools*
The moose likes Beginning Java and the fly likes Static This, Static That 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 "Static This, Static That" Watch "Static This, Static That" New topic
Author

Static This, Static That

henri henri
Ranch Hand

Joined: Oct 03, 2005
Posts: 115
can one use too many static references in a program?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Yes, absolutely. In fact, many if not most uses of "static" that I see are ill-considered. A static variable is awfully like the dreaded global variables of procedural languages. They lead to highly-coupled, hard to maintain code.


[Jess in Action][AskingGoodQuestions]
henri henri
Ranch Hand

Joined: Oct 03, 2005
Posts: 115
acknowledged
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Static This, Static That