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 |
"We cannot create an object of interface but we can create a variable of it". Discuss the statement with the help of an example. (Plz help us to provide immediately.)
Is empty list java?
What is mean by exception?
Compare java and python.
How do you make a thread in java?
What are drawbacks of singleton class?
How is string stored in java?
Have you worked on bits programming? examples?What is bit? How many bits are there in the byte?
What is the Vector class?
what is main difference b/w abstract class and interface
What the difference is between execute, execute Query, execute Update?
What methods are called, When we navigate from one applet to another applet?