What is static import
Answer: static import declaration is similar to the normal import declaration. Where the normal import declaration imports classes from packages, allowing them to be used without package qualification, the static import declaration imports static members from classes, allowing them to be used without class qualification.
Example 1 without static import below:
Example 2 with static import below: