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 types of index data structures can you have in java?
How do you find the independent variable?
Can a static class have a constructor java?
How to display names of all components in a Container?
In the below example, what will be the output?
What is a java applet? What is an interface?
What is anagram of a string?
What is jvm? How its run?
What is a native method in java programming?
What is gui programming?
What is foreach loop in java?
Can we serialize arraylist in java?
What is boolean data type in java?
Is a boolean 1 bit?
What is javac used for?