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 static import in java?

986


List some features of the abstract class.

1069


What is java ceil?

1034


Can an object be null?

967


Explain about method local inner classes or local inner classes in java?

1027


How do you override a variable in java?

1149


23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an tag?. code,height & width. 26. What does 'CODEBASE' in an applet tag specify?. Files absolute path.

2473


What are the advantages of unicode?

1010


In a class implementing an interface, can we change the value of any variable defined in the interface?

1085


What is the difference between overriding and overloading in OOPS.

1165


Which is best ide for java?

1046


What is the program development process?

975


What are the main uses of java?

992


Is it possible to override private or static method in java?

996


Differentiate storage classes on the basis of their scope?

1171