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 the function of http?
What is immutable state?
How to display all the prime numbers between 1 and 100
What is boolean example?
Can a class have an interface?
How many ways can an argument be passed to a subroutine and explain them?
What is a "pure virtual" member function?
What is the difference between size and length in java?
What is the major advantage of external iteration over internal iteration?
I want to store more than 10 objects in a remote server? Which methodology will follow?
How to make a class or a bean serializable?
What is the main use of java?
Can we sort hashset in java?
How to display names of all components in a Container?
What does .equals do in java?