adspace
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
Write a program to print count of empty strings in java 8?
What do you mean by an interface in java?
Explain public static void main(string args[]) in java.
What are the differences between heap and stack memory in java?
What is the difference between break and continue statements?
What is an object in java and how is it created?
Write a program to find the whether a number is an Armstrong number or not?
How to sort array in descending order in java?
How to create a base64 decoder in java8?
Realized?
What is java string pool?
What is a classloader in java?
What is a constructor overloading in java?
Is minecraft 1.15 out?
explain different ways of using thread? : Java thread