What happens when a main method is declared as private?
Answer Posted / sagar chavan
If the main function is made private,
we can do it but the starting point of project should be changed. By default it is main.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is difference between static and abstract class?
How finally used under exception handling?
What are thread groups?
How will you initialize an Applet?
Explain restrictions for using anonymous inner classes?
What do you understand by an io stream?
What is arrays fill in java?
What does percent mean in java?
Define linked list and its features with signature?
What are the differences between path and classpath variables?
Why main() method is public, static and void in java ?
Is null a string or object in java?
What is subsequence of a string?
What is a class object?
Is java written in c?