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
Why unicode is important?
Why enumeration is faster than iterator?
What are data types in oop?
What is port number in java?
What is the common usage of serialization?
What about anonymous inner classes in java?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
What is the meaning of variable in research?
What is a boolean structure?
Explain the difference between a Thread and a Process.
How can constructor chaining be done using this keyword?
What is byte [] in java?
What is main method?
What are memory tables?
Can you start a thread twice in Java?