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

Is set ordered?

934


Can we serialize singleton class?

984


Can we declare a class as static?

1048


What is the difference between abstract class and interface1? What is an interface?

1008


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

1215


What is the purpose of return statement?

1020


What is parsing a sentence?

1008


What is the purpose of main function in java?

982


Do loops java?

966


Is a string literal?

1017


What does it mean that a method or field is “static”?

929


Does collectionutils isempty check for null?

1377


What is java dot?

890


explain copyonwritearraylist and when do we use copyonwritearraylist?

909


Can a vector contain heterogenous objects?

1008