4 ms·
This sentiment is dogma from long ago when there was a slight performance improvement for individual imports. Today, there is no such performance advantage. T
by jburwell 14y ago
This sentiment is dogma from long ago when there was a slight performance improvement for individual imports. Today, there is no such performance advantage. Their risk of a namespace collision, but in practice, it is very rare and very easy to identify when it does. The main reason it remains is mainly due to default IDE configuration.
On the flip side, wildcard imports make coding much more fluid and concise. How many times have you had to hit ctrl+space two or more times in the same declaration to add import statements for interfaces and classes from the same package? IMHO, explicit imports greatly decrease the usefulness of the static import feature.
- nradov 14y agoThere has never been any runtime performance difference between individual and wildcard imports. Compiled byte code is identical.