Team,
While learning java (specially generics), i could see two different parameter in the method (.class and object reference) . When to use .class option and new myclass()? give me some example to understand