Toss out Inheritance Forest

Toss out Inheritance Forest
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...

Can we Overload Main method in java.

Can we Overload Main method in java.
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...