What happens when a main method is declared as private?
Answer Posted / thiru
The default signature should not be altered. If any changes, at run time "Class xxx does not have main method" exception will be thrown. But compilation will not give any exception.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Difference between final and effectively final ? Why is effectively final even required ?
Which is a valid identifier?
What is mysql driver class name?
Can we sort hashset in java?
Is java pass by value or pass by reference?
What is the difference between multitasking and multithreading in Java
Can an unreferenced object be referenced again?
How to set the permissions to a file in java?
What is a container in a gui?
What is java abstraction with example?
How can u increase the heap size in the memory?
How finally used under exception handling?
What is java used for on a computer?
What is jar?
How to change the priority of thread or how to set priority of thread?