문제

Possible Duplicate:
Import package.* vs import package.SpecificType

I am wondering the different between java.util.* and java.util.Date in the import class declaration. Some developers prefer java.util.*, but other developers prefer declaring one specific import declaration per class. I know that this is a coding style and this is kind of trivial, but I am curious if there is any performance difference or the pros and cons.

올바른 솔루션이 없습니다

다른 팁

There is no performance or memory allocation difference to doing import pkg.* vs. import pkg.class. But best practice to import specific package class

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top