What happens when a main method is declared as private?
Answers were Sorted based on User's Feedback
Answer / varsha vilas kalebag
IF MAIN METHOD IS DECLARED AS PRIVATE ,THEN WE CAN NOT
ACESSES THE PRVIATE MEMBERS IN ANOTHER CLASS
Is This Answer Correct ? | 5 Yes | 43 No |
Answer / vani
Nothing Happen.
Code compiles properly and executes properly.
Is This Answer Correct ? | 5 Yes | 76 No |
What are the six ways to use this keyword?
Can each java object keep track of all the threads that want to exclusively access it?
What are wrapped classes in java programming?
what is difference between validation.xml & validation rules.xml?
Explain wrapper classes in java?
Write a program to show whether a graph is a tree or not using adjacency matrix.
What does pointer mean?
What are memory tables?
what is object slice?
design an lru cache in java?
Explain a few methods of overloading best practices in java?
What are the escape sequences in java?