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
Is a char always 1 byte?
What is the symbol for line break?
What is the basic concepts of OOPS?
what methods would you overwrite in java.lang.object class?
Discuss 2D arrays.
Why chararray() is preferred over string to store the password?
What is size () in java?
What does s mean in regex?
how to create multithreaded program? Explain different ways of using thread? : Java thread
How will you compute size of a structure?
What is the concatenation operator in java?
Differentiate between run time error and syntax error.
Can a serialized object be transferred via network?
Can Exception handling we can handle multiple catch blocks?
What is another word for methodology?