Is it possible to override main method?

In Java we can not override a method which is static, but we can implement the method with the same name and parameters. This is called shadowing and not overriding.
Have a Look Here For A better explanation

No comments:

Post a Comment