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 |
Why are the destructors for base class and derived class called in reverse order when the program exits
Explain what pure virtual function is?
Why java is secure? Explain.
What is class variable java?
What is an object in Java and what are its benefits?
what is bmg file and how to create that files?what will it contailn?
0 Answers HCL, Probe Services,
Can you make an instance of an abstract class?
what is meant by multicast?
What is a method in java?
what is the diff b/w arraylist and vector?
6 Answers Code Genesis, Genesis, Sprintine Labs,
What is the string function?
What are the differences between checked exception and unchecked exception?