CodesJava

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

Please follow and like us:
error








Copyright © 2019 CodesJava DMCA.com Protection Status