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
Is null in java?
List some java keywords sun like c, c + + keywords?
What is autoboxing in java?
What is variable and example?
Does sprintf add a null terminator?
Why hashmap is used in java?
What does ide stand for?
Why string is not thread safe?
What access modifiers can be used for methods?
Is arraylist an object in java?
How to provide security in java
How to create an immutable class?
What is final keyword in java? Give an example.
Is overriding possible in java?
Does isempty check for null?