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 |
a thread is runnable, how does that work? : Java thread
what is the difference between java and j2ee... is that can i work j2ee on net beans IDE 6.0
Is java platform independent?
Why do I need to declare the type of a variable in java?
What is Distributed Application and what is its usage?
What are advantages of using Java?s layout managers than windowing systems?
Give me example of derived data types.
"We cannot create an object of interface but we can create a variable of it". Discuss the statement with the help of an example. (Plz help us to provide immediately.)
List the three steps for creating an object for a class?
What happens if a constructor is declared private?
Difference between nested and inner classes ?
what is d difference between deep cloning and shallow cloning in core java?