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
Why do we need wrapper classes?
Can we declare array without size in java?
What is difference between path and classpath in java?
How can you make a class serializable in java?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
Is 0 true or false?
What is jrmp?
Explain throw keyword in java?
Tell me are there implementations for sorting and searching in the java libarary?
What is math exp in java?
In case of inheritance what is the execution order of constructor and destructor?
What are the differences between wait() and sleep()?
How to make a write-only class in java?
What is the difference between an if statement and a switch statement?
Can you explain the private protected field modifier?