What happens when the main() isn't declared as static?
Answer Posted / 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 |
Post New Answer View All Answers
What is the use of coding?
Are private methods final?
What are the differences between throw and throws?
What is "this" keyword in java? Explain
Explain the differences between static and dynamic variables?
What is difference between local variable and global variable?
What is the difference between inheritance and encapsulation?
How do you replace a string in java?
Can we use return in constructor?
What are thread safe functions?
Can memory leak happen java?
Explain about the dynamic behavior of core java?
What is parsing a sentence?
How do you create a bulleted list?
What type of variable is gender?