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
Is java written in c?
Why is java not 100% pure oops?
How does queue work in java?
How do you sort data in java?
What is the function of character?
Explain about automatic type conversion in java?
Does substring start with 0?
How many functional interfaces does java 8 have?
What is nested loop? What is dangling else condition in it?
What’s the difference between constructors and other methods?
What is the meaning of flag day?
What do you mean by formatting?
How do you access command-line arguments within the code?
Give any two differences between C++ and java.
What is a treeset in java?