In Java, what’s the purpose of static methods and static variables?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
When a method or variable needs to be shared across several objects of a class, developers utilize a static keyword to make it shared for all objects. Instead of making unique copies for every object, this is employed.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
When a method or variable needs to be shared across several objects of a class, developers utilize a static keyword to make it shared for all objects. Instead of making
unique copies for every object, this is employed.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is null keyword in java?
When do we use hashset over treeset?
Can we declare Pointer in Java?
What do you understand by Header linked List?
What are the names of Component subclasses that support painting?
How do you define a set in java?
what is the use of Clonable,and serializable interface?
Is an object null?
What is difference between filereader and bufferedreader?
What is oop principle in java?
How do you escape json?
what Data encapsulation in java?