What is static variable and static method?
Answer Posted / rajiv sairam
Static variable can be modified, only a single copy is maintained for the objects,it stays in memory until we delete it manually,accessing is directly with the class name
Static method can access only static data with the class name, no need of creating objects.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Difference between a process and a program?
What are the different types of inheritance in java?
Is there a jre for java 11?
What is a map? What are the implementations of map?
What is the purpose of static keyword in java?
What are the three types of design patterns?
What is a file pointer?
What is the difference between variable & constant?
What is java util collection?
What is the difference between stored procedure & function?
Can an interface extend another interface?
Break statement can be used as labels in java?
Does java support multiple inheritances?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
Explain about the select method with an example?