Difference between static methods, static variables, and static classes in Java.
Answer / 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 |
Can an interface extands a class?
Why char array is preferred over string for storing password?
Is java based on c?
Discuss about garbage collector in Java.
0 Answers Agilent, Integreon, ZS Associates,
What is Servlet?
What is a dot notation?
What is data member in java?
What is the method in java?
What is the difference between equals() and == in java?
How to compare two strings in java program?
What is the use of ?this??
What is the primary benefit of encapsulation?