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
What is a class component?
Is java a compiler?
Why object class is super class for every class in java?
Can an integer be null java?
What about abstract classes in java?
Why we override equals() method?
What are different access specifiers in java? Explain
How do you define a parameter?
Is nullpointerexception checked or unchecked?
What is unmodifiable list in java?
What is the main use of java?
What is arrays sort in java?
What is the collections api in java programming?
Explain different ways of creating a thread?
How do I start learning java?