Computer Science, asked by abdul1759, 1 year ago

What is static import in Java?

Answers

Answered by Anonymous
0

Static import is a feature introduced in the Java programming language that allows members (fields and methods) which have been scoped within their container class as public static , to be used in Java code without specifying the class in which the field has been defined.

Answered by vipuldubey706838
0

The import allows the java programmer to access classes of a package without package qualification whereas the static import feature allows to access the static members of a class without the class qualification.

Similar questions