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 significance of listiterator?
What is a data structure java?
What is ctrl m character?
can we override the main() method in java????
3 Answers Vimukti Technologies,
What does the string method compareto () do?
How hashmap increases its size in java?
What class allows you to read objects directly from a stream?
What are latest features introduced with java 8?
What is the difference between synchronized and synchronized block?
Which is bigger float or double java?
What is object of class in java?
How will you reverse a link list without using recursion?