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 / anil kumar.kommmisetty

In java we using a main method
i.e public static void main(String args[])
public > This is used for any where we can access.

static > This is used for constat and then first compile to
start.
void > should not return any value.

main > where to start the compile the program to tell.

String > it is a class.

args[] > this is used to tell the when ever u enter the
data that is treated as arguments to that program.

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the string method compareto () do?

1053


If you do not want your class to be inherited by any other class. What would you do?

1000


What is a Transient Object?

1078


Can a class have 2 constructors?

881


Mention a package that is used for linked list class in java.

957


Define Multiprogramming and Multiprocessing in java.

1137


What is your platform’s default character encoding?

1078


What is the difference between size and length in java?

970


Does constructor be static?

1029


Can a class be a super class and a sub-class at the same time? Give example.

1544


What is autoboxing in java?

1060


Define immutable object?

1043


What is the difference between method and means?

1066


What ide should I use for java?

1017


What is java and their uses?

1028