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
Is it possible to compare various strings with the help of == operator? What are the risks involved?
What is the purpose of garbage collection in java?
What is a byte array?
Is multiple inheritance supported by java?
What does system out println () do?
What is the significance of continue jump statement? Explain with an example.
Why do we need data structure in java?
How will you add panel to a frame?
What is private static class in java?
What is parsing in grammar?
What are the types of relation?
Are floats faster than doubles?
State two differences between C and Java.
How will you communicate between two applets?
What is adapter in java?