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


Please Help Members By Posting Answers For Below Questions

Is class is a data type?

574


Difference between predicate, supplier and consumer ?

585


How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?

757


How do you square a number?

583


What is illegal identifier in java?

537






What are the super most classes for all the streams?

1174


what are abstract functions?

559


What are the advantages of encapsulation in java?

551


Why is boolean important?

593


What are the changes in java.io in java 8 ?

556


What is the difference between static and non-static variables in java programming?

519


How to sort an array in java without using sort method?

524


how to deploy tomcatserver to weblogic server? write d following steps?

1448


What is return null in java?

510


what is the difference between Object Based Language and Object Oriented Language?

599