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...

Difference between static methods, static variables, and static classes in Java.

Answer Posted / nashiinformaticssolutions

A variable, method, or class can be made static by using the static keyword. A static class cannot be instantiated. When both objects or instances of a class share the same variables, this is referred to as static variables. Static methods are simply methods that refer to the class in which they are written.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate storage classes on the basis of their scope?

1168


What is boolean query?

972


What is a parameter in java?

981


How to instantiate static nested classes in java?

1073


What are the basics of core java?

1009


What are the disadvantages of object oriented programming?

1258


Explain where variables are created in memory?

1004


what is the messsage u r going to get from an objectoriented programing?

2093


Explain about the select method with an example?

1169


Why java is said to be pass-by-value ?

1033


What is an array length?

895


What is a boolean in java?

1045


Convert a BST into a DLL and DLL to BST in place.

1109


How do I know if java is installed?

1076


What are the two types of streams offered by java 8?

922