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
Explain methods specific to list interface?
Can inner class have constructor?
What is class level lock ?
What is matcher in java?
Is java type safe?
How do you declare an array in java?
What is java used for on a computer?
What is the difference between synchronized and synchronized block?
What is java instanceof operator?
How an object is serialized in java?
What is the use of predicate in java 8?
Tell me are there implementations for sorting and searching in the java libarary?
Can you inherit from an abstract class java?
Is string serializable in java?
Is there any difference between nested classes and inner classes?