What happens when a main method is declared as private?

Answer Posted / subha narayan mohapatra

it will generate an error message because main() method is
the start or execution point in our java program.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different data structures in java?

519


What is the loop in java?

558


What is overriding in java?

505


Tell some latest versions in JAVA related areas?

546


What is the difference between a method and a function in alice?

567






What package is math in java?

520


What does it mean to be immutable?

534


What does isempty () do in java?

585


What is an arraylist in java?

503


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

559


How we can declare a static variable?

636


If a method is declared as protected, where may the method be accessed?

514


How do you remove duplicates in java?

507


What is variable explain?

516


What is the final field modifier?

529