int a = 20; int b = 20; public static void sum(){ // Void Method System.out.println(a + b); } public static int sum(){ // Return Function return a + b; }