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 / nashiinformaticssolutions

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

What happens if constructor is private?

1074


What is <> used for in java?

1169


What is a class variable?

1097


How does sublist works in java?

1027


What is a boolean structure?

1133


What is a short in java?

1120


What is a boolean field?

1005


What are reference variables in java?

1177


Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?

1195


Explain scope or life time of local variables in java?

1075


What are annotations in java?

1139


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

9276


What is __ init __ functions?

1198


Can we execute a program without main?

1077


What is classpath?

1064