What is static import in Java?
Answers
Answered by
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
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
Biology,
6 months ago
Art,
6 months ago
Computer Science,
1 year ago
Science,
1 year ago
Science,
1 year ago