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
Is class is a data type?
Difference between predicate, supplier and consumer ?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
How do you square a number?
What is illegal identifier in java?
What are the super most classes for all the streams?
what are abstract functions?
What are the advantages of encapsulation in java?
Why is boolean important?
What are the changes in java.io in java 8 ?
What is the difference between static and non-static variables in java programming?
How to sort an array in java without using sort method?
how to deploy tomcatserver to weblogic server? write d following steps?
What is return null in java?
what is the difference between Object Based Language and Object Oriented Language?