What happens when a main method is declared as private?
Answer Posted / subha narayan mohapatra
it will generate an error message because main() method is
the start or execution point in our java program.
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What are different data structures in java?
What is the loop in java?
What is overriding in java?
Tell some latest versions in JAVA related areas?
What is the difference between a method and a function in alice?
What package is math in java?
What does it mean to be immutable?
What does isempty () do in java?
What is an arraylist in java?
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
How we can declare a static variable?
If a method is declared as protected, where may the method be accessed?
How do you remove duplicates in java?
What is variable explain?
What is the final field modifier?