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 methodology can be utilized to link to a database?
What are java packages?
How java is similar to c?
What is the primary benefit of encapsulation?
What is literal example?
How we can execute any code even before main method?
What is the purpose of garbage collection in java, and when is it used?
What are different access specifiers in java?
Can you explain the usages of class.forname()?
What are the 4 types of research methods?
Explain about the dynamic behavior of core java?
Will set allow duplicates in java?
Which class should you use to obtain design information about an object in java programming?
What is the use of generics? When was it added to the Java development Kit?
Can we override the overloaded method?