What is static variable and static method?
Answer Posted / sivaramakrishna bandaru
static method or a variable is not attached to a particular
object, but rather to the class as a whole. They are
allocated when the class is loaded. Remember, each time you
call the instance the new value of the variable is provided
to you.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What do you mean by aggregation?
How do you sort a list in java?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
How will you load a specific locale?
What is difference between java and java ee?
What is meant by inheritance and what are its advantages?
What is data and its types?
What is variable length arguments in java?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
Can you make a constructor final?
Is null == null in java?
What is difference between static and final?
What are the 6 functions?
What do you know about java?
How will you serialize a singleton class without violating singleton pattern?