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

What are access specifiers available in java?

968


What is fail fast in java?

1059


What is the use of singleton class?

904


What is the difference between multitasking and multithreading in Java

1131


What is the difference between abstract classes and interfaces?

972


What is java oops?

995


why are there separate wait and sleep methods? : Java thread

975


What is Classloader in Java?

1130


Explain inheritance in java?

928


What is ternary operator?

958


Java is pass by value or pass by reference? Explain

933


What is the function of character?

1006


How can you set an applet’s height and width as a percentage?

875


Write a program to reverse a number in java?

1040


What is the use of string and stringbuffer?

935