Domanda di colloquio di Bridgenext

Use of static keyword in main method in Java

Risposta di colloquio

Anonimo

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