Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 494 Bytes

README.md

File metadata and controls

31 lines (18 loc) · 494 Bytes

main-method-detailsjava

Main method is entry point of program. you can define multiple mainmethod in each class. Main method is called or invoked by jvm(java virtual machine).

you can define main method inside interface. And .class file is also created for interface.

Syntax: public static void main(String [] x) { } //x is reference,it can be your name also.

public static void main(String x []) { //it is compulsory to add subscript. }

public static void main(String... x) {

}