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, what’s the purpose of static methods and static variables?

Answer Posted / glibwaresoftsolutions

When a method or variable needs to be shared across several objects of a class, developers utilize a static keyword to make it shared for all objects. Instead of making
unique copies for every object, this is employed.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain methods specific to list interface?

981


Can inner class have constructor?

1042


What is class level lock ?

1034


What is matcher in java?

1003


Is java type safe?

962


How do you declare an array in java?

1059


What is java used for on a computer?

993


What is the difference between synchronized and synchronized block?

1066


What is java instanceof operator?

1043


How an object is serialized in java?

988


What is the use of predicate in java 8?

963


Tell me are there implementations for sorting and searching in the java libarary?

1036


Can you inherit from an abstract class java?

994


Is string serializable in java?

1020


Is there any difference between nested classes and inner classes?

1098