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 / suresh.t.c

public static void main(String arg[])

public for accessing all object

static for to call main method without instance

void main for not returning values for avoid compilation errors

String arg[] is ,in input takes as strings so takes multiple inputs declared String with array of arg[]

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is break and continue statement?

1079


What's the access scope of protected access specifier?

1024


What are the 7 types of characters?

1068


How do you identify independent and dependent variables?

999


Can classes declared using the abstract keyword cab be instantiated?

1039


Can private method static?

905


Why is it called a string?

998


How to display arraylist values in java?

997


what is singleton in java?

1039


What do you mean by access modifier?

1015


What is the most important feature of java? What is an interface?

1000


What is reverse function?

1116


What is use of static method?

1041


What does localhost mean?

939


What is hashtable and explain features of hashtable?

972