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
How can we find the actual size of an object on the heap?
Which variables are stored in heap?
Can java arraylist hold different types?
What are the differences between abstract class and interface?
What are the new features in java 8? Explain
What are the elements of java?
What 4 doubled?
What is a method in programming?
When do we use hashset over treeset?
What is struts in java?
What are the special characters?
Where is the find and replace?
What is boolean query?
What is empty list in java?
What is the maximum size of list in java?