Using a class to store static data in Java?

前端 未结 7 642
醉梦人生
醉梦人生 2020-12-28 23:50

Is it a bad idea creating a separate class and use it as a storage which consists only of static data variables?

I am currently developing an app for android, but th

7条回答
  •  囚心锁ツ
    2020-12-29 00:25

    Well ! As far as I know It might depend on the size of your project ! If its relatively large its good to use separate class to store static data (not only one class , you might come in need of keeping them two or more classes depending on the type of the static data used)

提交回复
热议问题