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
Explain the use of shift operator in java. Can you give some examples?
In java, how we can disallow serialization of variables?
Explain about collection interface in java?
What are the types of casting?
What is difference between stringbuffer and string?
What is the difference between exception and error in java?
What are actual parameters?
Why java is called not pure object oriented language?
How many types of voids are there?
Does sprintf allocate memory?
Difference between a process and a program?
What is public/private protected in java?
What are the benefits of immutable objects?
What do you mean by Hash Map and Hash Table?
extending thread class or implementing runnable interface. Which is better? : Java thread