What happens when a main method is declared as private?
Answer Posted / milanjeet singh
When we define main method as private, it will compile but when run, it show an Error as: main method is not found in the class, please define the main method as public static void main (String[] args)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a program to find maximum and minimum number in array?
How does list work in java?
What is skeleton and stub? What is the purpose of those?
What is hash in java?
What is a local class in java?
Can static methods access instance variables in java?
What’s the difference between applets and standalone program?
What is an interface in java?
Explain the difference between static and dynamic binding in java?
What is the full name of java?
Is null a string in java?
What is module in project?
What do you mean by ordered and sorted in collections in java?
What is tochararray in java?
What is bool mean?