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 |
What is the importance of finally block in exception handling?
What is java util collection?
What is a parameter in simple terms?
What is user defined exception in Java?
Write a program to reverse array in place?
How do you reverse a string in java without using string buffer?
Does java isempty check for null?
a thread is runnable, how does that work? : Java thread
What is an empty string in css?
long d =10;int i =0;i=d; /// is this possible? If d is very long number (10 digits or some thing) then?
What is Distributed Application and what is its usage?
why are there separate wait and sleep methods? : Java thread