can we override the main() method in java????
Answer Posted / 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 |
Post New Answer View All Answers
Which data type is class in java?
What are the types of relation?
what do you mean by java annotations?
Explain all java features with real time examples
What is stringjoiner ?
What is a function in programming?
What is a arraylist in java?
Why synchronization is important?
How many types of the indexof method are there for strings?
Which is faster string or stringbuilder?
What is sleep method?
What about features of local inner class?
What do you understand by the term string pool?
What is java and its types?
What are some characteristics of interference class?