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
What do you mean by constructor?
Give a brief description of java socket programming?
What is the static field modifier?
What is the length of a string?
When do you get classcastexception?
Write a java program to generate fibonacci series ?
What is java util concurrentmodificationexception?
How we can execute any code even before main method?
Explain about interthread communication and how it takes place in java?
Why is a singleton bad?
How many types of java are there?
Why is the type for real numbers called double?
What does replaceall do in java?
What is return type in java?
If an object is garbage collected, can it become reachable again?