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 does replaceall do in java?
How do you download stubs from Remote place?
How do we access static members in java?
Which is the best sorting technique in java?
What is callable java?
What is a treeset in java?
How does map works in java?
Why is it called buffering?
what is instanceof operator used in java?
What is strings in java?
What does void * mean?
What is the constructor?
What is binary search in java?
What does jenkins do?
What are the two environment variables that must be set in order to run any java programs?