What happens when a main method is declared as private?

Answer Posted / yogesh gandhi

Wrong Vani.

The output of the program is

C:\>javac abc.java

C:\>java abc
Main method not public.

Is This Answer Correct ?    72 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is finally block?

756


What is the map interface in java programming?

778


How we can skip finally block of exception even if some exception occurs in the exception block in java?

727


What is meant by bytecode?

769


What are namespaces in java?

733


Does treeset use compareto?

742


What is variable explain?

728


java Technical questions asked by JPMC

4792


What is unicode full form?

744


What are the different types of inheritance in java?

759


What is the original name of java?

774


What is the significance of continue jump statement? Explain with an example.

1023


How can you read an integer value from the keyword when the application is runtime in java? example?

863


How do you identify if jvm is 32-bit or 64-bit from java program?

732


What is the latest java version?

805