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
Explain abstract class in java?
Can we have a try block without catch block?
What is replacefirst in java?
Is double bigger than float?
What is the difference between declaration and definition in java?
What do you mean by append?
What best practices should you follow while writing multithreaded code in java?
When should you use arraylist and when should you use linkedlist?
How does linkedlist work in java?
What is wrapper class html?
Explain with example the concept of constant variable in java.
Is upper case in java?
Is 0 true or is 1 true?
What is the difference between @before and @beforeclass annotation?
What is the difference between multiple processes and multiple threads?