Concept of creating static Map

Posted by chetan on Stack Overflow See other posts from Stack Overflow or by chetan
Published on 2010-03-27T05:55:22Z Indexed on 2010/03/27 6:03 UTC
Read the original article Hit count: 245

Filed under:
|

I want to create a Map object that can lose value only if we explicitly delete it from map. I have created Map object like

public static Map<Long,String> listUser =new HasMap<Long,String>();

but every time class object is created new instance of Map is also created that contain null value. I want to create a Map instance that contain value we stored before.

© Stack Overflow or respective owner

Related posts about map

Related posts about java