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
Can you add null to a list java?
Which collection is sorted in java?
Differentiate between a class and an object.
What is charat java?
What does provide mean construction?
How will you get the platform dependent values like line separator, path separator, etc., ?
What is the purpose of extern variable?
What is the difference between a factory and abstract factory pattern?
design an lru cache in java?
How we can execute any code even before main method?
Does string isempty check for null?
Can this keyword be used to refer static members?
What is early binding and late binding in java?
What is final?
What is the advantage of preparedstatement over statement?