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
How many decimal digits is 64 bit?
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
Convert Binary tree to linked list.
What is parameter example?
What is the use of toarray () in java?
Is it safe to install java on my computer?
Explain java coding standards for classes or java coding conventions for classes?
What are the classes of java?
What is the difference between jdk, jre, and jvm?
Explain the difference between transient and volatile in java?
What happens if we override only equals?
What is difference between path and classpath variables?
Explain java thread life cycle.
When is the finalize() called? What is the purpose of finalization?
Why pointers are not used in java?