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

Is empty .java file name a valid source file name?

593


How do you convert an int to a string in java?

550


How do you join strings in java?

532


What is generic type?

576


What is pangram in java?

521






When should the method invokelater() be used?

590


Write a java program for binary search?

613


what is predefined function in java?

548


What is connection class in java?

518


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

691


Is string a datatype?

559


What is natural ordering in java?

538


What about anonymous inner classes in java?

571


What is struts in java?

585


What is memory leak and how does java handle it?

525