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
how to prepare for IT Officers Interview in Banks
How is string stored in java?
What is jrmp?
Why is stringbuffer faster than string?
What is a treemap in java?
What is variable declaration and definition?
What is module in project?
How do you remove all elements from an arraylist in java?
What does sizeof return?
Difference between arraylist and vector.
What is sorting algorithm in java?
What are the escape sequences in java?
What methods are used to get and set the text label displayed by a button object?
what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent
how to run ecllipse with jettyserver for windows environment using batch file