• Post Reply Bookmark Topic Watch Topic
  • New Topic

Generics  RSS feed

 
nagul samy
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Team,

What is the difference among below instantiations;

Set<Company> c = new HashSet<Company>();
Set<Company> c = new HashSet<>();
Set<Company> c = new HashSet();

Thanks in advance.

 
Tim Cooke
Marshal
Posts: 4051
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you think the difference is?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!