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
Is hashset ordered?
Is it possible to use string in the switch case?
What is instance synchronization?
What is math in java?
What is multithreading in java?
What is dynamic array in java?
What is a platform?
What are the benefits of operations in java?
What does arrays sort do in java?
What do you know about the garbate collector?
How do I write a self declaration?
Difference between start() and run() method of thread class?
Write a program in java to create a doubly linked list containing n nodes.
Why do you canvas?
What is a parent class in java?