Question d’entretien chez Bridgenext

Use of static keyword in main method in Java

Réponse à la question d'entretien

Utilisateur anonyme

2 août 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