New course! Every coder should learn Generative AI!
Try a free lesson+ 1
main is the entry function which the code starts running from when it is executed, and when the main method has a standart exit, the code ends.
static is an access modifier that allows a variable or method to be accessed without an instance of its class
void means that a method has no return value
public means that the variable or method is accessible outside of its class
private means that the variable or method is only accessible within its respective class