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 a parameter example?
What is the benefit of inner / nested classes ?
Why pointers are not used in java?
What is busy spin, and why should you use it?
What are packages in java?
Define an abstract class with reference to java.
When should I use a singleton?
Is java a compiler?
What is string subsequence method?
What is treeset in java collection?
What is the use of pattern in java?
Explain about java sdk?
How do you create a sop?
Which are the two subclasses under exception class?
Explain the difference between throw and throws in java?