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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does java have a compiler?

1026


How to compare two strings in java program?

1047


Explain listiterator and methods in listiterator?

1013


What is the core java?

948


Explain throw keyword in java?

1042


What is keyword auto for?

1180


What is the difference between access specifiers and access modifiers in java? 16

991


What is a null point?

1059


Does the order of public and static declaration matter in main method?

1070


What programs use java?

951


Does importing a package imports its sub-packages as well in java?

966


What is hashing in java?

1036


Will set allow duplicates in java?

971


What is the use of flag?

1079


What is the impact of declaring a method as final?

1015