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

What is static class

624


How to perform merge sort in java?

594


What does three dots mean in java?

664


What is the static field modifier?

606


What is anti pattern in programming?

507






What will happen when using pass by reference in java?

528


Can main() method in java can return any data?

659


What is the difference between a method and a function in alice?

585


Where local and global variables are stored?

551


What is serial version uid and its importance in java?

608


What does g mean in regex?

574


How can we make a class singleton?

588


Can we rethrow the same exception from catch handler?

571


What is hashmap in java?

577


What are the advantages of assembly language?

509