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 overload main method?

Answer Posted / shrirang & chetak

yes , we can overlode main method but we can not override
main method

example :
class a
{
public void main()
{
System.out.println("0.00000000");
}

public static void main(String ar[])
{
a A=new a();
A.main();
}
}

Is This Answer Correct ?    13 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of shift operator in java. Can you give some examples?

978


In java, how we can disallow serialization of variables?

994


Explain about collection interface in java?

995


What are the types of casting?

1071


What is difference between stringbuffer and string?

966


What is the difference between exception and error in java?

1023


What are actual parameters?

1038


Why java is called not pure object oriented language?

1026


How many types of voids are there?

993


Does sprintf allocate memory?

1116


Difference between a process and a program?

1120


What is public/private protected in java?

1044


What are the benefits of immutable objects?

1013


What do you mean by Hash Map and Hash Table?

1099


extending thread class or implementing runnable interface. Which is better? : Java thread

1002