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

Why do we use public static with the main function in Java?

Answer Posted / shekhar chauhan

public static void main()- firstly, public which r used
globly access this method in our whole progam. and static
basically used for that we can used only one main method in
whole program.we can not create object that class. so we
make static main method.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is singleton math?

1216


What is oops in java?

1065


List two java ide’s?

1096


what is the difference between process and thread? : Java thread

1022


Can a class have multiple superclasses?

1240


What is xslt in java?

1022


what invokes a threads run() method? : Java thread

1059


What happens when heap memory is full?

1034


What is command line argument in java?

1220


Why javac is not recognized?

1002


How to reverse string in java?

1265


Does printwriter create a file?

1012


Can we write any code after throw statement?

1107


What is the SimpleTimeZone class?

2329


What is intern method in java?

1121