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


Please Help Members By Posting Answers For Below Questions

What is the purpose of garbage collection in java, and when is it used?

559


What is the difference between an array and an array list?

498


Explain aggregation in java?

543


What is enhanced loop in java?

544


Is it possible to use string in the switch case?

553






What is the argument in java?

490


What is final int?

522


what is difference betweem home interface and remote interface?

2107


Can we have this () and super () together?

600


What are multiple inheritances?

577


What do you mean by compiler?

578


When is the arraystoreexception thrown?

566


What are the two environment variables that must be set in order to run any java programs?

523


What is a ternary operator in java?

530


What are controls and their different types in awt?

596