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 is the difference between a method and a procedure?
why are there separate wait and sleep methods? : Java thread
What is null mean in java?
what is the difference between @include page and @include file
What is volatile keyword in java
What is the maximum size of arraylist in java?
diff between abstract methods and interfaces with programing (code) example?
use of wrapper classes?
Why can't we make a class private in java?
What is the use of ?this??
What is remote method invocation (rmi)?
Realized?