New course! Every coder should learn Generative AI!
Try a free lesson0
Whyyy static is present in main method of java
plz give me answer
1 Answer
+ 2
static means you do not need an instance to use that function. If main method is not static, then you have to create a new instance of that class and then use main method.