Static Import

What is a static import? Why it is required?

Questions by usksanthu

Showing Answers 1 - 1 of 1 Answers

venkat9060

  • Nov 23rd, 2010
 

By using the static import we can reduce the code writing
 
  for example


     static import java.lang.System
     class StaticTest{
      public static void main(String args[]){
        out.println("hi");
     }
 }
 


 in the above statement out.println("hi"),hear System class is no need

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions