This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Is there any advantage of importing particular class from a package over importing the entire package?
Suppose i need to import class Am from package Alphabets, then does
have any advantage over
A single‑class import, however, makes it obvious how many classes you are using from that package. It also reduces the risk of collisions like thisIf you look in those two packages, you find each contains a Timer class ←which is what the compiler said!