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 ? | 111 Yes | 8 No |
Post New Answer View All Answers
What is the difference between java applets and applications?
What is a copy constructor in java?
What is a line separator in java?
How do you get length in java?
What are the different data types in java?
Is java an open source?
Why arraylist is used in java?
What is sleep method?
What is an inner class in java?
Name few java 8 annotations ?
What about features of local inner class?
What are different types of multitasking?
Write a java program for binary search?
What is r in java?
What is boolean law?