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 difference between iterator access and index access?
Why do we use string?
What is the maximum length of a url?
Is empty string in java?
What is meant by class?
What is numel matlab?
Which of the following classes will have more memory allocated?
What are different types of encoding?
Why string objects are immutable in java?
Can we declare register variable as global?
What is generic type?
In how many ways we can do exception handling in java?
Which programming language is best in future?
Write a program in java to establish a connection between client and server?
Explain the difference between throw and throws in java?