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

What is class array in java?

717


Is 0 true or false in java?

752


What are the advantages of inner classes?

741


Why can't we make a class private in java?

781


Is math class static in java?

838


What are the different types of sorting in java?

739


What is advantage of java?

770


What about features of local inner class?

837


What is the primitive type short?

797


What is a constructor, constructor overloading in java?

754


Can private class be inherited in java?

802


What's a method in programming?

756


Is java a pure object oriented language?

733


What is the gregoriancalendar class in java programming?

786


How to make a write-only class in java?

797