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 are the benefits of immutable objects?
Can we declare an array without size in java?
Why java is object oriented?
What are the characteristics of java?
what is the difference between a threads start() and run() methods? : Java thread
Write a program to print fibonacci series up to count 10.
What do you mean by exception handling in Java?
What is boolean used for?
What is stringbuffer in java?
Why java is considered as platform independent?
Can java cast null?
Can we create a constructor in abstract class?
Can we declare a static variable inside a method?
In a container there are 5 components. I want to display the all the components names, how will you do that one?
Is list thread safe in java?