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
Explain the selection sort algorithm and state its time complexity?
How are variables stored?
Which collection is sorted in java?
Is namespace same as package in java?
What are functions in java?
How are variables stored in memory?
What is meant by inheritance and what are its advantages?
Can size_t be negative?
What is java util concurrentmodificationexception?
What kind of variables a class can consist of?
How many types of gc are there in java?
What is valid keyword in java?
Can we use string in the switch case?
What is a treeset in java?
When do we use synchronized methods in java?