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

what is purpose of writting public static void main(Strind
arg[]) in java..?

Answer Posted / srinivas nallavelli

public-> it must be available to jvm
static-> to use without instantiation
void-> does not return any thing
String[] args -> to take every variable as string
..through cmmand line arguements

Is This Answer Correct ?    17 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I right-justify a string?

1252


What are different types of inner classes ?

1100


What is difference between stringbuffer and string?

1012


What is n in java?

989


What is tree in java?

990


What is sorting algorithm in java?

1148


What are the differences between string and stringbuffer?

1180


Can we use a switch statement with strings?

1106


What is a jagged array in java?

1178


What is use of inner class in java?

1239


What’s the difference between applets and standalone program?

1107


What isan abstract class and when do you use it?

1665


Why is String immutable?

1115


Should you use singleton pattern?

992


Explain java heap space and garbage collection?

1131