Pregunta de entrevista de Bridgenext

Use of static keyword in main method in Java

Respuesta de la entrevista

Anónimo

2 ago 2021

static keyword means the method can be called without creating any objects first. If there are multiple constructors with in the class that resides main, then it might lead to ambiguity, do the main function is static

2