When to use static import in Java with example

Tutorials Shared by the Internet Community

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

When to use static import in Java with example

Static import in Java is a pretty useful feature, which allows to only import static members of a certain class e.g. static fields and static methods.
http://javarevisited.blogspot.com/2012/10/what-is-static-import-in-java-5-example-tutorial.html
  • Total Hits: 19011

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 186 votes

  • Category: JAVA/Core JAVA

  • Submitted on: 2013-05-10 16:09:30

  • Submitted By: Javin Paul

  • Set as Favorite

Description:

Static import in Java is a pretty useful feature, which allows to only import static members of a certain class e.g. static fields and static methods. By importing static members, we can use them like they are member of same class.    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 39.78%  74
 Two starsTwo star  Vote LeftVote MiddleVote Right 8.6%  16
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 9.14%  17
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 9.68%  18
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 32.8%  61

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.






Advertisements