What happens when a main method is declared as private?
Answer Posted / vani
Nothing Happen.
Code compiles properly and executes properly.
| Is This Answer Correct ? | 5 Yes | 76 No |
Post New Answer View All Answers
What is difference between equals and hashcode method?
Why is java so important?
what do you mean by classloader?
Can I extend singleton class in java?
Explain wait(), notify() and notifyall() methods of object class ?
How to calculate the length of a singly linked list in java?
Explain the pointers in Java?
Is null a value?
Explain the scope or life time of class variables or static variables?
Can the garbage collection be forced by any means?
Can we create a constructor in abstract class?
Can you declare the main method as final?
What is the definition of tree ?
When should I use singleton pattern?
What is set in java?