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 |
How can the checkbox class be used to create a radio button?
What are the OOAD concepts in java explain with examples?
What is predicate in java?
Which java version is latest?
What are the three parts of a lambda expression? What is the type of lambda expression?
Can constructor return value?
what is the difference between abstract class and Interface?where we can use it in realtime projects?
23 Answers Agile Software, Cognizant, IBM, Innodata, Logica CMG, Mitosis, Nagarro, Value Chain,
How do you achieve polymorphism in java?
What is an eror in java?
What is the use of protected in java?
What is a layout manager?
Why java does not supports multiple inheritance?