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 are access specifiers in java ?
0 Answers Akamai Technologies,
What are the pillars of java?
What is a modifier?
What are the types of exceptions?
What is the return type of read()?
Are arrays passed by reference in java?
Why are constructors used?
What is the significance of continue jump statement? Explain with an example.
Which is not Object in Java?
What is internal iteration in java se 8?
What is the argument type of main() method?
What is the reason that multiple inheritance is not possible in java??