What is static variable and static method?
Answer Posted / rajesham
static variables are global variables for which memory is
allocated on loading of class.
for this variable memory allocated only once,but use more
than once.
static method is a class method.
static method performs class operation.
static method can not operate instance data directly.
static method is use without "this" reference.
static method is bind with class name or object name
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Which oo concept is achieved by using overloading and overriding?
What is threaded programming and when is it used? : Java thread
Is java a compiler?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
What is the vector class in java programming?
What is pass by value?
How big is a 32 bit integer?
Is java 1.7 the same as java 7?
Which package has light weight components in java programming?
Explain what pure virtual function is?
What are the steps involved to create a bean?
What is mvc in java?
Explain about object oriented programming and its features?
Can I extend singleton class in java?
What is initial size of arraylist in java?