What is the meaning of public static void? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

What is the meaning of public static void?

10th Apr 2021, 7:56 AM
Youngcommander Youngcommander
Youngcommander Youngcommander - avatar
2 Respuestas
+ 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
10th Apr 2021, 9:36 AM
CamelBeatsSnake
CamelBeatsSnake - avatar
+ 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
10th Apr 2021, 10:28 AM
SAN
SAN - avatar