How to prevent objects from GC in Java
Using Singleton Class
In case of a singleton class, the reference of the only object created can be stored in a static reference. Since static members are stored in class area (a memory segment), thei...
原创
2019-11-18 15:04:21 ·
151 阅读 ·
0 评论