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

Is there is any error if you have multiple main methods in
the same class?

Answer Posted / bindhu

The compilation error " main(lava.lang.String[]) is
already defined " will occur when we use have multiple main
methods in the same class?

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between an if statement and a switch statement?

1151


What is treeset in java?

986


What is return data type?

994


What is the difference between multitasking and multithreading in Java

1169


Explain garbage collection in java?

966


Are maps ordered java?

944


What do you mean by chromounits in java8?

944


What ide should I use for java?

1014


How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?

1053


In a container there are 5 components. I want to display all the component names, how will you do that?

2184


Explain the term virtual machine?

1038


What is an accessor?

1671


If we don’t want some of the fields not to serialize how to do that?

1006


Describe the Big-O Notation.

1035


Can a class have 2 constructors?

881