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

What does %4d mean in java?

835


What are the differences between heap and stack memory?

539


What is join () in java?

522


how does multithreading take place on a computer with a single cpu? : Java thread

684


What is floating data type?

529






How can we run a java program without making any object?

533


Can finally block be used without a catch?

538


What is a buffer in computer?

502


What are the three parts of a lambda expression?

524


What is the latest java version?

550


what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread

513


Define max and min heap, also the search time of heap.

580


Under what conditions is an object’s finalize() method invoked by the garbage collector?

571


What is thread start?

512


Difference between static and dynamic class loading.

573