What happens when the main() isn't declared as static?
Answer / nashiinformaticssolutions
When the main method is not declared as static, then the program may be compiled correctly but ends up with a severe ambiguity and throws a run time error that reads
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between jvm and jre? What is an interface?
What is substring of a string?
What are the advantages of encapsulation in java?
What is string args [] in java?
Can we clone singleton class in java?
What are the advantages of defining packages in java?
How does arrays sort work in java?
what is difference between abstract factory and factory design patterns?
Name few java 8 annotations ?
Differentiate between stringbuffer and stringbuilder in java.
What is public static void main?
can we add two numbers without using arthematic operators? if possible how?