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
What are static methods?
What do you mean by an interface in java?
What is the program compilation process?
Why do we need singleton?
What is high level language in computer?
Why is stringbuffer called mutable?
why Java does not support multiple inheritances?
When can an object reference be cast to an interface reference in java programming?
What is use of set in java?
What is called module?
Justify your answer that you can't define a method inside another method in java, if you can then how?
What is proper subset?
What is the difference between jdk, jre, and jvm?
What is core java used for?
How many threads does a core java have?