What happens when a main method is declared as private?
Answer Posted / amit kumar chaubey
If the main function is made private...it will compile
Sucessfully...and at the time of execution...it will
execute successfully...but desired result will not be
obtained. After execution..folowin message will be printed:
Main method not public.
|Is This Answer Correct ?||25 Yes||3 No|
What is the difference between array and array list in java?
What is multiple inheritance? Is it supported by java?
What is a parameter example?
Do you need to import math in java?
Which eclipse is best for java?
Is java same as core java?
Is linkedlist thread safe in java?
Why we cannot override static method?
What are the 6 boolean operators?
What is the difference between a choice and a list?
How to find the given number is a prime number or not by getting input from the user
What is a qualifier in a sentence?
How to make a read-only class in java?
What is a conditional statement explain with example?
What restrictions are placed on method overloading in java programming?