can we override the main() method in java????
Answer Posted / 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 |
Post New Answer View All Answers
What is the concatenation operator in java?
I want to print “hello” even before main is executed. How will you acheive that?
What are void methods?
Can a constructor call another constructor?
What is the difference between a constructor and a method?
How can we avoid including a header more than once?
When is an object subject to garbage collection?
What two classes are used to read data only?
Why is stringbuffer called mutable?
How many inner classes can a class have?
How objects are stored in java?
Define inheritance with reference to java.
What is difference between checked and unchecked exception in java?
Name few java 8 annotations ?
What are the common uses of "this" keyword in java ?