Can u overload main()method.Give with example.
Answer Posted / manikandan [ gtec,vellore ].
yes,gothrough below code.
class test
{
public static void main(String []asdff)
{
test.a();
}
public static void main(int a,int b)
{
System.out.println("over loaded");
}
static void a()
{
test.main(1,2);
}
}
| Is This Answer Correct ? | 40 Yes | 12 No |
Post New Answer View All Answers
What does flag mean in java?
Does sprintf add a null terminator?
What are the basics of core java?
Which containers use a flowlayout as their default layout in java programming?
What is a concrete classes? Is Java object class is concrete class?
Explain how hashmap works?
Mention some features of java?
What is a java developer salary?
Why super is first line in java?
What is comparator in java?
In how many ways we can do synchronization in java?
What is a null check?
What is the use of a copy constructor?
Difference between stack and queue?
What is difference between final and finally in java?