What happens when a main method is declared as private?
Answer Posted / yogesh gandhi
Wrong Vani.
The output of the program is
C:\>javac abc.java
C:\>java abc
Main method not public.
| Is This Answer Correct ? | 72 Yes | 5 No |
Post New Answer View All Answers
How do you stop a thread in java?
What is java object name?
What is math floor in java?
what is the difference between a threads start() and run() methods? : Java thread
How do you use compareto in java?
how to write a server program and sending the mails to the server using smtp protocol please help me
How do you write a scanner class in java?
When should the method invokelater() be used?
What is map and hashmap in java?
Which is a valid identifier?
How does sublist works in java?
What is a nested class?
What is intern method in java?
When parseint method can be used?
Why can we not override static method?