What happens when a main method is declared as private?
Answer Posted / maduakor ngozi chukwukodinaka
When a method is declared as private, the program compiles
properly but it will give runtime error ?Main method not
public".
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is java command?
What is meant by tab pans?
What is the new line character?
Is java a security risk?
Where is jre installed?
Mention a package that is used for linked list class in java.
State the main difference between c++ and java?
Explain what pure virtual function is?
What does int argc char * argv [] mean?
What is thread life cycle in java?
What is pangram in java?
What about features of local inner class?
What is java basic concept?
Is there a jre for java 11?
What do you mean by of string::valueof expression in java 8?