Can u overload main()method.Give with example.
Answer Posted / srinu
yes we can overloaded the main() method
public class A
{
public static void main(int a[])
{
System.out.println("overloaded method");
}
public static void main(String a[])
{
System.out.println("main method");
}
output: overloaded method
| Is This Answer Correct ? | 26 Yes | 89 No |
Post New Answer View All Answers
What does index mean in java?
Why is core java important?
Why is serialization required?
In java how do we copy objects?
What are the steps involved to write rmi based programs?
What will be the output of round(3.7) and ceil(3.7)?
Can we sort array in java?
What are the new features in java 8?
How to sort an unsorted array in java?
What is a class instance variable?
What are constructors in java?
What is method overloading with type promotion?
What are the 6 mandatory procedures for iso 9001?
What is hotjava?
What is difference between path and classpath?