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

Why do we need wrapper classes?

1118


Can we declare array without size in java?

1082


What is difference between path and classpath in java?

1092


How can you make a class serializable in java?

1043


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

9276


Is 0 true or false?

1048


What is jrmp?

1004


Explain throw keyword in java?

1090


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

1085


What is math exp in java?

1090


In case of inheritance what is the execution order of constructor and destructor?

1183


What are the differences between wait() and sleep()?

1050


How to make a write-only class in java?

1103


What is the difference between an if statement and a switch statement?

1217


Can you explain the private protected field modifier?

1075