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 singleton mean in java?
Is vector synchronized in java?
Difference between overriding and overloading in java?
Using callable statement how can you pass out parameters, explain with example?
Why hashmap is used in java?
Does treeset use compareto?
what do you mean by classloader in java?
What is visibility mode?
What is fundamental datatype?
What is the meaning of nullable?
Can a abstract class be defined without any abstract methods?
What is the final variable?
What is locale?
What is the difference between array list and vector in java?
What is the java reflection api? Why it’s so important to have?