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


Please Help Members By Posting Answers For Below Questions

Why do we use predicate in java?

543


What will happen to the exception object after exception handling?

557


what do you mean by classloader?

537


Why lambda expression is used in java?

557


Discuss about garbage collector in Java.

624






How a string is stored in memory?

564


What is class??

743


What is a dynamic array in java?

547


What is the purpose of an interface?

544


What are the methods used to implement for the key object in the hash map?

556


Is there a case when finally will not execute?

552


How many types of gc are there in java?

547


What is the purpose of the return statement?

500


How can you say java is object oriented?

579


What class allows you to read objects directly from a stream in java programming?

499