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 finally block?
What is the map interface in java programming?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
What is meant by bytecode?
What are namespaces in java?
Does treeset use compareto?
What is variable explain?
java Technical questions asked by JPMC
What is unicode full form?
What are the different types of inheritance in java?
What is the original name of java?
What is the significance of continue jump statement? Explain with an example.
How can you read an integer value from the keyword when the application is runtime in java? example?
How do you identify if jvm is 32-bit or 64-bit from java program?
What is the latest java version?