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
How many types of classes are there in java?
What is the default value of local and global variables?
Explain the difference between hashmap and hashtable in java?
What is a ternary operator in java? What is an interface?
What is hasnext in java?
What is overloading and overriding in java?
What is meant by attribute?
Can set contain duplicates?
What does 3 dots mean in java?
Why does java have different data types for integers and floating-point values?
What is the difference between compiler and jvm?
What are abstract methods in java?
How can we create objects if we make the constructor private ?
What do you mean by composition in java?
Implement two stacks using a single array.