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
Can we increase size of array?
What is difference between adapter class and listener?
What is the association?
Which programming language is best in future?
What is difference between stringbuffer and string?
How do you compare two strings lexicographically?
How big is a boolean?
What are "methods" and "fields"?
What is the purpose of interface?
what is the difference between Object Based Language and Object Oriented Language?
What is the difference between sleep and wait in java?
Why pointers are not used in java?
What are the 3 types of loops in java?
What is parse method?
Write a program to find the greatest of three numbers in java?