Is it always necessary to pass argument to
public static void main() . i have run program throug eclipse and it says that it cant find main().
code:
class First()
{
public static void main()
{
System.out.println("Hello");
}
}
Whats the problem?
And is it necessary to pass argument(
String[] args) to main()? If yes, then why?