What is main function?

In OOP concept, Java need a default method to run the code, which is directly called while running the Java Application

public static void main(String[] args) {< your code >}

Public: is an Access modifier

Static means no object present for the class

Void: means nothing will be returned

main(): default name of main method

String[] args: String type Argument/ Parameter