What happens when a main method is declared as private?
Answer Posted / subha narayan mohapatra
it will generate an error message because main() method is
the start or execution point in our java program.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Why collection is called framework in java?
What methodology can be utilized to link to a database?
What does java ide mean?
What restrictions are placed on method overriding?
How do you use find and replace?
How many types of voids are there?
Can we overload the methods by making them static?
Can we clone singleton object?
Can we assign integer value to char in java?
Explain public static void main(string args[]) in java.
What is bigger kb or mb?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
Why java doesn’t support multiple inheritances?
What does sprintf mean?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?