The Meaning of "static"
A static variable or method belongs to the class
A static variable is shared by all objects of the class
class C {
public static void main(String[] args){
int a = 10;
int b = 20;
System.out.println(max(a,b));
}
int max(int x, int y){
return (x>y) ? x : y;
}
}