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 java call by reference?
How to declare an arraylist in java?
Can we call thread start () twice?
Is vector thread safe in java?
What are the advantages of functions?
What makes a function well defined?
What are the rules for naming an array?
What is array length?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
Which access specifier can be used with class ?
What is the main functionality of the remote reference layer?
What is t in generics in java?
What are the methods of object class ?
How is abstraction implemented in java ?