Class names in example are only for showing purpose, you can give any other classes in answers.
BiMap is interface and ImmutableBiMap is Class implementing that interface.
What is the difference between these two declarations:
[*]BiMap<type, type> name = new ImmutableBiMap<type,type>();
[*]ImmutableBiMap<type,type> name = new ImmutableBiMap<type,type>();
In what cases which declaration should be used?
Quick question
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- JIV
- L2j Veteran
- Posts: 1882
- Joined: Sun Jan 06, 2008 8:17 pm
- Location: Slovakia
- Contact:
Re: Quick question
use interface unless you need something implementation specific.