In Java, what’s the purpose of static methods and static variables?
Answer Posted / 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 |
Post New Answer View All Answers
What is core java called?
What is bitwise complement?
Can we sort hashset in java?
How do you sort in java?
What is a loop java?
What is final variable?
Can we define static methods inside interface?
Does java return by reference?
What is the reason behind using constructors and destructors?
Explain about oops concepts.
Can we cast any other type to boolean type with type casting?
What is assembly language?
What does function identity () do?
What is an exception? difference between Checked and Unchecked exception in Java
Explain the difference between association, aggregation and inheritance relationships.