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 |
Which method returns the length of a string?
posted in online test
What is the simpletimezone class in java programming?
How many objects are created when we create String class object using new operator?
Can an exception be rethrown?
What restrictions are placed on method overriding?
What are the main uses of the super keyword?
What is meant by stack and queue?
What is java regex?
what is bytecode ?explain in detail and watz the difference between bytecode and machine code?
Can you explain inner class.
What is thread safe java?