Why are static variables considered evil?

前端 未结 30 2823
既然无缘
既然无缘 2020-11-21 05:04

I am a Java programmer who is new to the corporate world. Recently I\'ve developed an application using Groovy and Java. All through the code I wrote used quite a good numbe

30条回答
  •  一个人的身影
    2020-11-21 05:43

    Static variables most importantly creates problem with security of data (any time changed,anyone can change,direct access without object, etc.)

    For further info read this Thanks.

提交回复
热议问题