Pregunta de entrevista de Cognizant

Explain public static void main in java?

Respuesta de la entrevista

Anónimo

10 sep 2016

each word has its own meaning - Public-It is a access specifier which says that it can be accessed publically. Static-It says the variable or method is not dependent upon instance of a class ,it is called automatically. Void-It says that program will return nothing. main-It is the name of the function and serves as a starting point for program execution. String args][]-Argument to the function

6