at compile time gives error.but i think that Object is a super class he takes all sub class object .
error-
method set in class Manager cannot be applied to given types;
m.set("ritesh");
^
required: Object
found:
String
reason: actual argument String cannot be converted to Object by method invocation conve
rsion