Why are static variables used in Java?
What are static variables and static methods in Java and how are they used differently?