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 |
Post New Answer View All Answers
What are the steps involved to write rmi based programs?
What is the formula to calculate percentage?
How do you override a variable in java?
What is the main use of java?
Differentiate between a class and an object.
Is upper case in java?
What is final method in java?
Which method returns the length of a string?
What is a "pure virtual" member function?
What is method in java ?
What is the use of jtable?
What is java and its types?
What is the purpose of declaring a variable as final?
Explain parallel processing in java8?
What is class forname?