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
what are Hostile Applets?
What is a subsequence of a string?
What is a parameter in simple terms?
What is tree in java?
How many bits is a boolean?
Can interface be private in java?
What is the difference between static class and normal class?
Is java type safe?
How do you include a string in java?
What is JVM and is it platform independent?
How to make a read-only class in java?
What is isa relationship?
How to compare strings in java?
What is percentage in java?
How does java enable high performance?