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 is a file pointer?

1169


What is the difference between path and classpath variables?

1101


5 Coding best practices you learned in java?

1062


What are the drawbacks for singleton class?

1078


Can we modify the throws clause of the superclass method while overriding it in the subclass?

1081


How many bits is a boolean?

1133


Why is multiple inheritance not supported in java?

1092


What are the wrapped, classes?

1109


What are the types of relation?

1107


Write a program to show whether a graph is a tree or not using adjacency matrix.

1151


What is == mean?

1046


How does arraylist work in java?

1170


Which package is imported by default?

1132


What does the “static” keyword mean?

1172


What is the use of math abs in java?

1067