Java packages

0 votes
asked May 28, 2021 by Stella Aldridge (20 points)  

Hi all,

I need some help with importing packages in Java. Are the custom packages used more often than the built ones? I've heard that they can even substitute the last ones.
Also, I have some doubts regarding java.util.* - if it can import all the classes in the package or the separate ones only?

Thank you for all the ideas in advance.

commented Jul 15, 2021 by Hitesh Garg (799 points)  
When we use a * with the import, we can refer to any class that lies under that package. No need to import them individually if you have imported via a *

Please log in or register to answer this question.