What is static variable and static method?
Answer Posted / sivaramakrishna bandaru
static method or a variable is not attached to a particular
object, but rather to the class as a whole. They are
allocated when the class is loaded. Remember, each time you
call the instance the new value of the variable is provided
to you.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between preparedstatement and statement in java?
What is sortedmap in java?
Why char array is preferred over string for storing password?
Explain spliterator in java8?
What is the effect of keeping a constructor private?
Why does abstract class have constructor?
Discuss about garbage collector in Java.
What are the 3 types of control structures?
What is the use of isempty in java?
Does java set allow duplicates?
What is a class in java?
Why is a string immutable?
Write code of any action class?
What is set in java?
What class allows you to read objects directly from a stream?