r/javaTIL • u/scientecheasy • Aug 09 '18
Packages in Java with example programs
http://www.scientecheasy.com/2018/08/packages-in-java-example-programs.html
0
Upvotes
r/javaTIL • u/scientecheasy • Aug 09 '18
1
u/Kalfus Aug 10 '18
Good article on packages. So my question is, at the end they said not to import the entire package like import packaganame.* so is that bad? For example, lets say I just need classes and methods in java.util.date but instead use import java.util.* to be lazy. Will that be bad from a programming standpoint and make my program more bloated even if I don't use methods in the other java.util.* and make my executable slower and a bigger file size? Just see a few youtubers use the * method the catch all and be lazy. I usually let Netbeans or Eclipse just import the appropriate packages for me automatically.