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
Which class is the superclass for every class in java programming?
How do you declare a destructor in java?
What is void class in java?
What is a instance variable?
Explain about exception propagation?
What is the primitive type byte?
Explain the inheritance?
What is thread pool? How can we create thread pool in java?
Can java inner class be static?
Can long be null in java?
what is meant by Garbage collection?
What are the string methods in java?
What is singleton class in ruby?
What is the use of toarray () in java?
What about interrupt() method of thread class ?