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 |
Is Java a dying language?
What is aggregation and composition ?
Can try statements be nested?
What are jee technologies?
What is the purpose of a statement block?
What is meant by vector class, dictionary class, hash table class, and property class?
What are filterstreams?
What is difference between static method and static variable?
"we cannot create an object of interface but we can create a variable of it".diacuss the statement with the help of an example.
What is purpose of applet programming?
What is escape analysis algorithm in JVM and how garbage collection actually worked n how it transfer the objects from one kind of space to other?
Can we have this () and super () together?