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 the uses of java?

754


Can we declare the main method of our class as private?

741


Why there are some null interface in java? What does it mean?

846


What is structure of java heap? What is perm gen space in heap?

750


Can we define constructor in inner class?

732


Why collection doesn’t extend cloneable and serializable interfaces?

855


Explain about automatic type conversion in java?

806


What is parsing a sentence?

742


What is an interface in java?

761


What is difference between java and java ee?

748


Explain about varargs in java?

852


Can a final method be overloaded?

708


What do you mean by a JVM?

803


List implementations of list interface?

771


What do you understand by casting in java language?

781