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 use public static with the main function in Java?

Answer Posted / sai

public is used so that it can be called easily from outside
the scope of function.Static is used so that it can be
easily called without using its object.

Is This Answer Correct ?    37 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a java program to count the number of words present in a string?

1021


Difference between ‘>>’ and ‘>>>’ operators in java?

1176


Difference between concurrent hashmap and hashtable and collections

1125


What is the difference between form & report?

1084


Can we define private and protected modifiers for variables in interfaces?

1126


What are inner classes or non static nested classes in java?

1218


Can we extend singleton class?

997


Can an abstract class be a final class?

1042


how to run ecllipse with jettyserver for windows environment using batch file

2145


What are the steps involved to create a bean?

1214


How do you call a reference in java?

1036


How do you bind variables?

1154


Explain how can you debug the Java code?

1114


Explain different states of a thread in java?

1117


Give a practical example of singleton class usage?

1098