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
Is string an object?
What is bufferedwriter?
What are the states of thread in java?
How does sublist works in java?
What is java regex?
What is preflight request?
Explain about anonymous inner classes ?
In the below example, what will be the output?
Write an algorithm for quick sort?
Write a factorial program using recursion in java?
Why do we need data serialization?
How do you test a method for an exception using junit?
What is application tier?
Does java allow overriding static methods ?
How do you create a first line indent?