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 do you mean by java annotations?
Why singleton is not thread safe?
What is formatted output?
State differences between C and Java?
List two java ide’s?
What is set and get methods in java?
What is the difference between JVM and JRE?
Java is pass by value or pass by reference? Explain
What are untrusted applets?
How to sort array of 0 and 1 in java?
What are data types in programming?
What is the generic class?
Is string an object?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
What are extraneous variables examples?