Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

What happens when a main method is declared as private?

Answer Posted / harsha

When a method is declared as private, the program compiles
properly but it will give runtime error ?Main method not
public"

Is This Answer Correct ?    108 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the importance of thread scheduler in java?

238


What is static import in java?

200


Explain the selection sort algorithm and state its time complexity?

252


What is stack explain?

164


why using interface interface ?

1137






Why string objects are immutable in java?

203


Why is whitespace important?

168


Can you change array size in java?

156


What is singleton service?

155


What is an example of a boolean?

175


If goto and const is reserve words than why it is not work in java?

1192


How do you define a method?

181


What is bufferedreader in java?

191


How many types of literals are there in JAVA?

243


How to display arraylist values in java?

147