Jun 16, 2019 in JAVA
Q: Explain about main() method in java ?

Main() method is starting point of execution for all java applications.

public static void main(String[] args) {}

String args[] are array of string objects we need to pass from command line arguments.

Every Java application must have atleast one main method.

Related questions

0 votes
Jun 16, 2019 in JAVA