What is the difference when create Set<T> in java
Hi,
When create the Set in java, what's the diffenence between following? which one is more common.
Set<T> set = new HashSet<>();
HashSet<T> set = new HashSet<>();
Thanks,
Written by YelpDeveloper
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Java
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#