What happens when a main method is declared as private?
Answer Posted / thiru
The default signature should not be altered. If any changes, at run time "Class xxx does not have main method" exception will be thrown. But compilation will not give any exception.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is floor in java?
What are the main features of java?
Explain throw keyword in java?
Explain an algorithm to find depth of a binary tree.
Explain about transient variables in java?
Explain the differences between abstraction and encapsulation?
Write a function for palindrome and factorial and explain?
Difference between vector and arraylist.
Explain the public class modifier?
What is the use of static methods?
Is a case study a method or methodology?
Explain the importance of finalize() method.
How to do a true java ping from windows?
How do I compare two strings in word in java?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?