What is static variable and static method?
Answer Posted / mallesh
A static variable is a variable who's single copy in memory
is shared by all objects,so any modifications to the static
variable will modify it's value in all objects.
Static variables are created in Method Area part of Memory.
| Is This Answer Correct ? | 147 Yes | 30 No |
Post New Answer View All Answers
What is use of static method?
Is stringwriter thread safe?
Explain different ways of creating a thread?
What is style and indentation?
Is there a jre for java 11?
Why chararray() is preferred over string to store the password?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
Can a class have multiple subclasses?
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
What are the four corner stones of oop?
How to read and write image from a file ?
Can a vector contain heterogenous objects?
What is this keyword in java?
What do you mean by synchronized non access modifier?
Explain spliterator in java8?