Easy learning with example program codes

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.

Java interview questions on main method

Sign Up/ Sign In
Ask a Question

Copyright © 2018 CodesJava Protection Status SiteMap Reference: Java Wiki