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

Why unicode is important?

945


Why enumeration is faster than iterator?

945


What are data types in oop?

1042


What is port number in java?

1052


What is the common usage of serialization?

1151


What about anonymous inner classes in java?

1044


Add a value x to array from index l to r where 0 <= l <= r <= n-1

1095


What is the meaning of variable in research?

1018


What is a boolean structure?

1095


Explain the difference between a Thread and a Process.

1007


How can constructor chaining be done using this keyword?

1286


What is byte [] in java?

1019


What is main method?

1049


What are memory tables?

1103


Can you start a thread twice in Java?

1127