I\'m using extensively static variables in my web application project. Now I have read from some articles that it is a global variable for the whole project and the data tha
I believe your interpretation of static is wrong.
Use the static modifier to declare a static member, which belongs to the type itself rather than to a specific object.
In other words, there is only one instance of this member for all the specific instances of the class.
There isn't anything wrong with static variables as long as you use them correctly. I believe you are mixing static with global variables. Global variables can be accessed from everywhere. This isn't desireable since knowing when and where the state of that variable is set is complex. Furthermore this makes unit testing more difficult.
This Programmers.SE question probably interests you.