+ 1
What is the meaning of public static void?
3 Antworten
+ 5
public:
the method can be seen and be called by any other objects, without needing to be related to this
static:
the method isn't called on an object (an instance of a class), it's called on the class itself
void:
the method returns nothing
+ 4
Vist this site & sololearn already provided information about this
Complete java course
https://www.geeksforgeeks.org/understanding-public-static-void-mainstring-args-in-java/
https://www.sololearn.com/Course/Java/?ref=app