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 is the protected method modifier?
Is main is a keyword?
Why string objects are immutable in java?
What does null mean in java?
Does chrome use java?
What is the size of a string in java?
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
What are 5 boolean operators?
What is a hashmap used for?
What is boolean example?
Which is better 64 bit or 32 bit?
There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?
What are keywords and reserved words in java?
What is a byte array?
Who developed java?