What is static variable and static method?
Answer Posted / radhika.rangu
Static variable:-static variable is a variable whose single
copy is shared by all the objects of a class.
Static Method:-static method is a method.It is used to
declare the keyword called static.No need to create the
Objects.It is called without creating the object
| Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
What is serialversionuid?
What is an example of character?
Which sorting is used in arrays sort in java?
Does java linked list allow duplicates?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
What is hashset in java?
Can you declare the main method as final?
What is the purpose of default constructor?
Difference between process and thread?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
What is sortedmap interface?
What is an example of declaration?
What is sizeof () operator?
What is the difference between a method and a procedure?
What is the difference between heap memory and stack memory?