Toss out Inheritance Forest
In the previous article, we saw How we can solve the Inheritance forest problem by Decorator pattern,
In case if you missed that Article you can go here::
http://javaonfly.blogspot.in/2017/03/decorator.html
For...
Home » Posts filed under java 6
Can we Overload Main method in java.
in
can we overload main method,
java,
java 5,
java 6,
java interview,
main method,
overload main,
overloading
- on March 04, 2016
- No comments
Yes you can overload main method but public static void main(String[] args) is entry point in java. JVM always search for this method.
If it is not present in overloaded version ,when you try to run your code that gives run time exception no main method...