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


Please Help Members By Posting Answers For Below Questions

Which class is the superclass for every class in java programming?

585


What is vector?

596


How can you share data between two thread in Java?

535


What is method overloading and method overriding?

548


What is a class instance variable?

627






What is volatile data type?

557


What is meant by interface?

572


What does i ++ mean in Java?

515


What is method in research paper?

586


What is a stringbuffer?

526


Why put method is idempotent?

472


What is meant by the value of a variable?

467


Explain the selection sort algorithm?

654


Can a lock be acquired on a class in java programming?

544


What is purpose of keyword void?

574