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 is a file pointer?
What is the difference between path and classpath variables?
5 Coding best practices you learned in java?
What are the drawbacks for singleton class?
Can we modify the throws clause of the superclass method while overriding it in the subclass?
How many bits is a boolean?
Why is multiple inheritance not supported in java?
What are the wrapped, classes?
What are the types of relation?
Write a program to show whether a graph is a tree or not using adjacency matrix.
What is == mean?
How does arraylist work in java?
Which package is imported by default?
What does the “static” keyword mean?
What is the use of math abs in java?