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 / sreenu karampudi

public static void main(String args[])

When the class get loaded, it will execute the static main
() method. void as it does not return anything.

Is This Answer Correct ?    15 Yes 49 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the importance of main method in Java?

1021


why an outer class cannot be declared as private?

4231


What do you know about java?

901


What is rule of accessibility in java?

968


What is the use of math abs in java?

969


What are local variables?

1013


Explain the importance of finalize() method.

923


Is minecraft 1.15 out?

929


Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2772


How java uses the string and stringbuffer classes?

1008


Explain java code for recursive solution's base case?

980


How do you get length in java?

982


why Java does not support multiple inheritances?

1122


Can we call thread start () twice?

917


What is the difference between && and & in java?

1034