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 |
Explain methods specific to list interface?
What is void class in java?
What is the difference between processes and threads?
what is the difference between static class and singleton class? can we create static class?
2 Answers L&T, Octazen, Vamsi Labs,
How many bits is size_t?
please write java program of instanceOf keyword implementation
What is meant by null and void?
What’s the difference between the methods sleep() and wait()?
How is a structure different from array ?
Can we make the abstract methods static in java?
Can It is possible to synchronize the constructor of a Java Class?
What is the Set interface?