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
Differentiate storage classes on the basis of their scope?
What is boolean query?
What is a parameter in java?
How to instantiate static nested classes in java?
What are the basics of core java?
What are the disadvantages of object oriented programming?
Explain where variables are created in memory?
what is the messsage u r going to get from an objectoriented programing?
Explain about the select method with an example?
Why java is said to be pass-by-value ?
What is an array length?
What is a boolean in java?
Convert a BST into a DLL and DLL to BST in place.
How do I know if java is installed?
What are the two types of streams offered by java 8?