This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Static This, Static That" Watch "Static This, Static That" New topic

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

Joined: Jul 08, 2003
Posts: 24199

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
I agree. Here's the link:
subject: Static This, Static That
It's not a secret anymore!