What does the “static” modifier after “import” mean?

When used like this: import static com.showboy.Myclass; public class Anotherclass{} what’s the difference between import static com.showboy.Myclass and import com.showboy.Myclass? 9 Answers 9 See Documentation The static import declaration is analogous to the normal import declaration. Where the normal import declaration imports classes from packages, allowing them to be used without package qualification, the static … Read more