Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (anonymous):

In Java, when to use import java.util.*; versus import java.Scanner;

OpenStudy (e.mccormick):

When you finish a java project it should onlu include what is needed if you do the .*, however, you won't know what is actually used and included. By doing spesific includes you have a better idea of what is going into a pogram wheich can result in knowing what can be done to improve it. Also, if you add something later you will have an idea of what is already inclided so ready to use, thus preventing the addition of similar libraries that would increase size for little or no feature. With that in mind, when do you think it would be better to use the generic * rather than specific things?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!