In Java, what’s the purpose of static methods and static variables?
Answer Posted / 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 |
Post New Answer View All Answers
Explain the inheritance?
What is the most important feature of java? What is an interface?
How big is a pointer?
What is the purpose of the file class in java programming?
Explain the Propertie sof class?
How to create a thread in java?
Explain the hierarchy of java exception classes?
What is the major advantage of external iteration over internal iteration?
List some oops concepts in java?
What do you mean by constructor?
Where is the singleton class used?
How to pass arraylist to stored procedure in java?
How do I run java on windows?
how can i use a nonsynchronized hashtable?
what is session in java?