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
Can a boolean be null java?
What is Java Shutdown Hook?
How to overcome the exception object reference not set to an instance of object?
How do you create immutable object in java?
What is port number in java?
What is string example?
How to create a thread in java?
What do you mean by access modifier?
What is difference between array and arraylist in java?
What is instance synchronization?
how to create constants in java?
Explain about class in java?
What are meta-annotations?
Can you start a thread twice in Java?
Why is string builder not thread safe?