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

In Java why we write public static void main(String args[])
why not main()?

Answer Posted / lotus

as compiler needs to enter inside a program to compile so
public is used and static is used to help the main method
to be invoked without an object.

Is This Answer Correct ?    3 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the biggest integer?

1041


What is parsing in grammar?

1038


What is concurrent hashmap and its features?

1081


What is a string token?

1035


What is a flag and how does it work?

992


What is the difference between form & report?

1032


Java.util.regex consists of which classes?

989


What are JVM.JRE, J2EE, JNI?

1095


What is parameter example?

1014


According to java operator precedence, which operator is considered to be with highest precedence?

1079


What is a nullable field?

1032


how many types of Inheritance?

1161


When will you define a method as static?

1091


What are abstract methods in java?

1110


why an outer class cannot be declared as private?

4300