Bridgenext interview question

Use of static keyword in main method in Java

Interview Answer

Anonymous

2 Aug 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