What happens when a main method is declared as private?

Answer Posted / pankaj kumar

I have checked it proper in C# using visual studio.
its giving right output without any error at compile time or run time.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to create constants in java?

597


Can you sort a string in java?

481


What is set string?

586


What is the access scope of protected access specifier?

531


Which data type is a class in java?

569






Where is singleton pattern used?

520


What is off heap memory?

542


How do you create a null object?

506


What is the difference between abstract classes and interfaces?

505


how would you implement a thread pool? : Java thread

499


How does a for loop work?

500


What does pointer mean?

539


Why is logger singleton?

560


What is serial version uid and its importance in java?

594


What is the byte range?

578