Qus:    What is the static import?
Sep 13, 2021 00:15 1 Answers Views: 446 ROHAN
Prev Next
Answers (1)
SHIVA Sep 15, 2021 00:45
Answer:   The static import feature of Java 5 facilitate the java programmer to access any static member of a class directly. There is no need to qualify it by the class name.

Advantage of static import:
Less coding is required if you have access any static member of a class oftenly.

Disadvantage of static import:
If you overuse the static import feature, it makes the program unreadable and unmaintainable.

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect