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 9 released?
Is null a value?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
What is a string what operation can be performed out with the help of a string?
How do you compare characters in java?
Explain enumeration in java?
How to display names of all components in a Container?
Is space a character in java?
How do you write methodology?
What does string mean in java?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
Explain the use of sublass in a java program?
What is return keyword in java?
What is abstraction in java?
Why we use multi threading instead of multiprocessing?