Can anyone tell me whether this class is threadsafe or not ?
class Foo { private final Map aMap; public Foo() { aMap =
This class has no concurrency issue cause you expose only a get method. If you add some method that modify the map you have to mark this method as synchronized.
synchronized