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 is meant by design patterns?
Why can we not override static method?
What is a values collection view ?
Can variables be used in java without initialization?
Is namespace same as package in java?
Explain 5 io best practices?
What's the difference between comparison done by equals method and == operator?
Is the empty set a singleton?
What is the main method java?
How can we create objects if we make the constructor private ?
What is the main purpose of serialization in java?
What is meant by nested loop?
What is a heavyweight component?
List the features of java programming language.
please send me hr interview questions in it industry