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
Why do we use predicate in java?
What will happen to the exception object after exception handling?
what do you mean by classloader?
Why lambda expression is used in java?
Discuss about garbage collector in Java.
How a string is stored in memory?
What is class??
What is a dynamic array in java?
What is the purpose of an interface?
What are the methods used to implement for the key object in the hash map?
Is there a case when finally will not execute?
How many types of gc are there in java?
What is the purpose of the return statement?
How can you say java is object oriented?
What class allows you to read objects directly from a stream in java programming?