In Java, methods can be static. Static methods can be called without an object reference. Static methods can not use instance variables. They can use local or class variable (static).
public static void showAll(){
// name and age should be static
System.out.println("Name: " + name);
System.out.println("Age: " + age);
}