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
What is pojo class in java?
What is thread pool in java with example?
Why set do not allow duplicates in java?
Is arraylist an object in java?
What is local variable and instance variable?
How to check if linked list contains loop in java?
Can we restart a dead thread in java?
Which non-unicode letter characters may be used as the first character of an identifier?
what is meant by abstract class?
What is meant by 'Class access modifiers'?
What is proper subset?
What are the 7 types of characters?
What is the difference between jfc & wfc?
How many types of flags are there?
Why does java does not support multiple inheritance? Explain