What happens when a main method is declared as private?
Answer Posted / r.jainrocks@gmail.com
Byte that have main() implementation can become starting
point of program .
if a program have no main()
i.e.
public static void main(String[] args)
properly it can't become starting point in application
it can be use through other program which capable to become
starting point.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is exception in java?
what is meant by HQL?
Explain the importance of finally over return statement?
What is a local, member and a class variable?
What is the benefit of abstract class?
What is java oops?
What is the final keyword in java?
What are the different types of sorting in java?
What are bind parameters?
How many functional interfaces does java 8 have?
Can we have any code between try and finally blocks?
Why declare Main() inside the class in java ?
What is the difference between state-based unit testing and interaction-based unit testing?
Describe the Big-O Notation.
How many bits is a boolean?