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
What is finalize method?
What is stack class in java?
how are methods defined?
What is assembly used for?
Write a program to reverse a number in java?
What is unicode used for?
What is the same as procedures?
What is the platform?
How many tetrahedral voids are there in bcc?
What are the four corner stones of oop?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
In how many ways we can create threads in java?
Is a boolean variable?
How to read and write image from a file ?
What is a default method?