How to use Satic method, static variable and Static Class in Java

Tutorials Shared by the Internet Community

Do you know how to use Static method , Static variable and Static Class in Java ? static is an important keyword in Java. Static can be applied to inn

Statistics

Total Hits - 34904

Total Votes - 161 votes

Vote Up - 61 votes

Vote Down - 100 votes

Domain - javarevisited.blogspot.com

Category - JAVA/Core JAVA

Submitted By - Javin Paul

Submitted on - 2011-11-26 08:04:04

Description

Do you know how to use Static method , Static variable and Static Class in Java ? static is an important keyword in Java. Static can be applied to inner classes, variables and methods. static belongs to Class in Java and value of static variable will always be same for all instance of that Class. static methods are also binded at compile time as opposed to non static method which are binded at runtime. This article explains lot of important details about static keyword in Java. More detail...