Is there is any error if you have multiple main methods in
the same class?
Answer Posted / harathi
We can have multiple main methods with different
arguments.Compiler throws an error if we have a method
similar to public static void main(String args[])
| Is This Answer Correct ? | 21 Yes | 3 No |
Post New Answer View All Answers
What is core java called?
List the different types of classloaders in java.
Which data type is a class in java?
Is alive in java?
Explain the importance of finalize() method.
What do you meant by active and passive objects?
What causes memory leaks in java?
What are accessor methods in java?
Is java se open source?
Explain a few methods of overloading best practices in java?
What is structure of java heap? What is perm gen space in heap?
What do you understand by weak reference?
Why there are some null interface in java? What does it mean?
Discuss different types of errors that generally occur while programming.
Why does java have different data types for integers and floating-point values?