can we change return type of main() method?
As we discussed in previous question that we can overload main method. We can change the return type for main method but java compiler will refuse to acknowledge it as entry point for our application. Example public class Main { public static String main(String[] args) { System.out.println("main method with "); return "w3schools.com"; } }public class … Read more