Explain Java Main Method.



Java Main Method:


public static void method(String args[])

Here:

public: It means that it is available to other programs,methods.

Static: A static method is a method that can be called and executed without using an object, means it can be called using the class name itself.

Void : Without return type

Random Posts

Post a Comment