What is the use of static import ?

Answer Posted / bijoy baby

if we use static import we can access static methods and
static objects without the reference of class name. But one
disadvantage is u cant know the method or object is from
which class.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are annotations in java?

619


What is the use of default method in interface in java? Explain

546


What are peerless components?

619


What is a functional interface?

546


What is a char in java?

535






how do I create a runnable with inheritance? : Java thread

506


How do you remove spaces in java?

535


Explain notifyall() method of object class ?

664


What are the important features of Java 10 release?

511


What are the 4 types of research methods?

514


How do you define a method?

511


What are the types of casting?

594


How will you communicate between two applets?

632


Explain scope or life time of local variables in java?

559


If you do not want your class to be inherited by any other class. What would you do?

562