Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 the concatenation operator in java?

1200


I want to print “hello” even before main is executed. How will you acheive that?

1147


What are void methods?

1058


Can a constructor call another constructor?

1036


What is the difference between a constructor and a method?

1325


How can we avoid including a header more than once?

1073


When is an object subject to garbage collection?

1145


What two classes are used to read data only?

1130


Why is stringbuffer called mutable?

1039


How many inner classes can a class have?

1087


How objects are stored in java?

1087


Define inheritance with reference to java.

1139


What is difference between checked and unchecked exception in java?

1059


Name few java 8 annotations ?

1080


What are the common uses of "this" keyword in java ?

1057