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 is the basic concept of java?
What is the function of java?
How do you declare a string variable?
What is the collections api in java programming?
Can a constructor be made final?
What are the restriction imposed on a static method or a static block of code?
What is the difference between final, finally and finalize() in java?
What is the longest unicode character?
What does a boolean method return?
What is the role of the java.rmi.naming class?
Explain the difference between static and dynamic binding in java?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
Difference between abstract and concrete class ?
Describe string intern() methodology