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

What are alternatives to java serialization?

1052


What is double in java?

929


How many types of methods are there?

972


Implement a stack with push (), pop() and min() in O(1) time.

1032


What is identifier give example?

973


What is broken and continue statement?

942


Does java trim remove newline?

923


What are the important features of Java 10 release?

953


why Java does not support multiple inheritances?

1114


What is object-oriented programming?

1025


What are 4 pillers of object orinted programming?

943


What is vector?

993


How do you compare objects in java?

883


What is boolean logic?

968


Can we use string in switch case in java?

997