Variables

public class Hello {

private String name; // instance variable
private static int value = 10; // static variable

public int sum(int n, int m) {

int result = n + m; // result : local variable
return result;

}

public static void main(String args[]) {

Hello h = new Hello();
h.name = “Hello”;
System.out.println(h.name);
System.out.println(Hello.value);

}

}