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

What is enhanced loop in java?

1043


Why we use methods in java?

1046


Where will it be used?

1989


Explain the pointers in Java?

1100


Can you use abstract and final both with a method?

1155


How do you remove all elements from an arraylist in java?

1093


what do you mean by java annotations?

1215


What is set string?

1287


Can we override static methods in java?

1118


Explain naming conventions for packages?

1086


What is linkedlist in java?

1048


What is garbage collection? What is the process that is responsible for doing that in java?

1154


Which method returns the length of a string?

1091


Define nashorn in java8.

1088


What is the generic function?

1032