What happens when a main method is declared as private?
Answer Posted / 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 |
Post New Answer View All Answers
What are the advantages and disadvantages of object cloning?
What is the difference between length and size in java?
Is there any difference between nested classes and inner classes?
Can you explain the final method modifier?
What type of language is java?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
What is the difference between Java and C++?
What are anonymous inner classes?
What is a treemap in java?
Can constructor be protected in java?
What is data type modifier?
Can an interface be defined inside a class?
What is the mapping mechanism used by java to identify IDL language?
Can two objects have same hashcode?
What is public/private protected in java?