// overload by return type public class oltest { static int f() { return 1; } static String f() { return 2;} public static void main(String[] ave) { int x = f(); String y = f(); } }