The main() method is starting point of all java programs. All predefined methods are declared/defined in some class like println() method is defined in PrintStream class Now WHERE is the main() method declared/defined? Its not present in the Object class, where I presumed it to be . Or is it that the main() method is a user-defined method. If so, why can't we say
public static void main(int args){}
or
public void main(String args){}
Please someone explain this, Thanks in advance.