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 |
What is a class reference?
State two differences between C and Java.
Can static methods access instance variables in java?
What is procedure writing?
Why parameters should be passed by reference?
What is the difference between import java.util.date and java .util?
what is difference between Interface and abstract class
What are the important methods of java exception class?
What is string in java is it a data type?
what should do when using multiple catch() block & what should never do for the same?
List java api that supports threads?
What is difference between static and abstract class?