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

Why do we need public static void main(String args[])
method in Java...?

Answer Posted / shadow

We need
• public: The method can be accessed outside the
class / package
• static: You need not have an instance of the class
to access the method
• void: Your application need not return a value, as
the JVM launcher would return the value when it exits
• main(): This is the entry point for the application
If the main() was not static, you would require an instance
of the class in order to execute the method.
....!

$HADOW

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create more than one object singleton class?

1047


How can the checkbox class be used to create a radio button?

1040


How big is a boolean?

1049


What is Java Annotations?

1112


Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?

995


How do singleton patterns work?

979


What is n in java?

963


What must a class do to implement an interface in java programming?

1070


How do you calculate roots in java?

1095


Where are the local variables stored?

1076


What is the size of an array?

1039


What are the disadvantages of object oriented programming?

1284


can used Protected Class outside Function.?

1110


Explain purpose of sleep() method in java?

1128


What is a buffer in computer?

1012