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 is the relationship difference the canvas class and the graphics class?

1110


What will be the default values of all the elements of an array defined as an instance variable?

1077


Can we write a class without main method in java?

998


List some important features of java 10 release?

1158


Can you extend singleton class?

1155


Will minecraft java be discontinued?

1226


What is getkey () in java?

1054


Explain the different forms of polymorphism?

1054


What are inbuilt functions in java?

1165


Can we extend a class with private constructor?

1071


From the two, which would be easier to write: synchronization code for ten threads or two threads?

1104


What is a data structure java?

1064


What is mean by exception?

1076


What is included in core java?

1098


Can we convert integer to string in java?

1091