what is the difference between statis block and static
variable
Answer Posted / kiran
static variable are access and executed with objects or
methods(static or non-static) its a dependent.
static block executed and access independently when the
program starts
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is outofmemoryerror in java?
Is arraylist zero based?
What is the purpose of a parameter?
What is the use of http-tunneling in rmi?
What are the ways to instantiate the class class?
State the significance of public, private, protected class?
What is data structure in java?
What are namespaces in java?
Is namespace same as package in java?
Difference between a class and an object?
Can you declare a private method as static?
Can constructor be inherited?
Does garbage collection occur in permanent generation space in jvm?
Are functions objects in java?
What is local variable and instance variable?