Answer Posted / shrirang & chetak
yes , we can overlode main method but we can not override
main method
example :
class a
{
public void main()
{
System.out.println("0.00000000");
}
public static void main(String ar[])
{
a A=new a();
A.main();
}
}
| Is This Answer Correct ? | 13 Yes | 4 No |
Post New Answer View All Answers
What are access specifiers available in java?
What is fail fast in java?
What is the use of singleton class?
What is the difference between multitasking and multithreading in Java
What is the difference between abstract classes and interfaces?
What is java oops?
why are there separate wait and sleep methods? : Java thread
What is Classloader in Java?
Explain inheritance in java?
What is ternary operator?
Java is pass by value or pass by reference? Explain
What is the function of character?
How can you set an applet’s height and width as a percentage?
Write a program to reverse a number in java?
What is the use of string and stringbuffer?