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
Is space a character in java?
Explain, java is compatible with all servers but not all browsers?
Is it possible to override the main method?
How will you call an Applet using Java Script Function?
What do you know about the garbage collector in java?
What is the static block?
I want to store more than 10 objects in a remote server? Which methodology will follow?
Write a program in java to find the maximum and minimum value node from a circular linked list.
What are accessor methods in java?
How will you initialize an Applet?
Is heap stored in ram?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
How do you sort arrays in java?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
Can we initialize the final blank variable?