how it can be possible that we can initialize the final variable of the class at the creation time of the object ?
Anybody can explain it how is it possible ? ...<
If you mean a static final member you can use a static initializer:
class Example { public final static Map C; static { C = new HashMap<>(); C.put("hi", 5); } }