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 are the types of inner classes (non-static nested class) used in java?
What is a parameter in java?
How do you define a method?
what is recursion in java
Which methods are used during serialization and deserialization process?
Why java doesn’t support multiple inheritances?
Is constructor inherited?
Can I declare a class as private?
What is the main use of generics in java?
Give example to differentiate between call by value and call by reference.
Can we inherit inner class?
What about static nested classes in java?
Why to use nested classes in java?
How do you create an array in java?
what is the difference between future and callable interface in java?