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
how is final different from finally and finalize in java?
What are predicates in java 8?
State one difference between a template class and class template.
Can we have any code between try and catch blocks?
What is dynamic array in java?
What are the four corner stones of oop?
What is lossy conversion in java?
How many bytes is string in java?
What is the need of transient variables in Java ?
What is the reason behind using constructors and destructors?
When should you make a function static?
What is the Difference between Final Class && Abstract Class?
What is meant by interface?
Are arrays passed by reference in java?
What is append in java?