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 does java enable high performance?
What does sprintf return?
What do you understand by soft reference?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
What is an array length?
What is proper subset?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?
What is hash code collision?
What are class types in java?
does java support pointers?
Which of the following classes will have more memory allocated?
What are adapter classes?
Why object class is super class for every class in java?
What do you understand by the term polymorphism?
Is overriding possible in java?