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 are filterstreams?
What is mean by encoding?
What is the purpose of using the java bean?
Give an example of use of pointers in java class.
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
What is the difference between iterator and enumeration ?
Is null in java?
What are streams in java 8?
Can we sort list in java?
How do you create a sop?
What does singleton mean in java?
What is Hierarchy of exception?
How to call one constructor from the other constructor ?
How to store image in arraylist in java?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?