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 difference between delete and delete[]
Are static members inherited to sub classes?
Explain yield() method in thread class ?
Can we have any other return type than void for main method?
Should you use singleton pattern?
Why singleton class is used in java?
What is bool mean?
Why inputstreamreader is used in java?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
Compare java and python.
How objects are stored in java?
Is sizeof a keyword in java programming?
What are basic data types?
Can list contain null in java?
What is java full form?