What is static variable and static method?
Answer Posted / bijeesh.p
A static variable ,also reffered to as a class variable
which exists across instances of a class.
By default,all variables are created as instance
variables(A variable related to a single instance of a
class.Each time an instance of a class is created,the
system creates one copy of the instance variables related
to that class).To make a class variable,you must explicitly
declare the variable static.
| Is This Answer Correct ? | 16 Yes | 18 No |
Post New Answer View All Answers
Which class is the superclass for every class in java programming?
What are controls and their different types in awt?
Explain the differences between abstraction and encapsulation?
How can we make string upper case or lower case?
Explain inner classes ?
What is java instanceof operator?
How do you do exponents in java?
What is numel matlab?
What is nextint java?
Can we have any code between try and finally blocks?
Differentiate between a class and an object.
Why do we create threads in java?
Will the jvm load the package twice at runtime?
Is map ordered in java?
what is static import in java? Explain