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 serialization in java?
What is a generic code?
How is treeset implemented in java?
What is difference between == and === in js?
What does string intern() method do?
What is pojo class in java?
What does yield method of the thread class do?
How can we find the sum of two linked lists using stack in java?
What is fundamental datatype?
Is list ordered in java?
How to sort elements in a parallel array in java?
What is udp in java?
Name few java.lang classes introduced with java 8 ?
How many bits is a double?
What is pass by value?