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 5 doubled?
Is it safe to install java on my computer?
What is constructor chaining in java?
What is return data type?
Can we sort array in java?
How does map works in java?
Write code to implement bubble sort in java?
What is continuity of a function?
How to store image in arraylist in java?
What is data type example?
Explain the pointers in Java?
what is a working thread? : Java thread
What is finally and finalize in java?
Is java se free?
What is java algorithm?