can we override the main() method in java????
Answers were Sorted based on User's Feedback
Answer / zameer
Yes we can override the main() method in java but that main() method are not declare static keyword.
If main() method is static then we can not override
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / rajkumar
Hi ,You have rights to overload main(),but jvm can invoke
only main with String[] s. not other arguments main.If u
come for override both sub class and super class can hold
its own main. any way we can't invoke main with help of
either object ref or super. but at compile time we can't get
any error suppose both super and sub has main
| Is This Answer Correct ? | 4 Yes | 10 No |
Where we write javascript code in html page?
What is audio clip interface? Name few methods of it ?
what is difference between abstract and interface? can i give real time example for the two topics?
what are the design patterns in struts?
Hey buddy.. can you please tell me about the use of marker interface? And is there any link between marker interface and factory methods? Thanks in advance.
What is meant by class?
Why do we declare a class static?
What is the functionality of Webserver?
What type of variable is gender?
Is space a string in java?
Explain the difference between association, aggregation and inheritance relationships.
Which is better arraylist or vector?