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 do you mean by Hash Map and Hash Table?
What is __ init __ functions?
What is the use of arraylist class in java?
Write a java program to check if a number is prime or not?
Is java pass by value or pass by reference?
Explain serialization and deserialization in java?
Why declare Main() inside the class in java ?
What is the difference between checked exception and unchecked exception?
What is java lang object?
What is the technique adopted to create an immutable class?
Is multiple inheritance supported by java?
What is the null?
What is the default value of the local variables?
What are the types of java?
What is immutable class in java?