what is the difference between statis block and static
variable
Answer Posted / ramakrishna
Static block is the block which is executed first in the
program. Static variable is the common variable which is
shared by all the objects. Static variable is not specific
to any object.
Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
Explain method local inner classes ?
Where are local variables stored?
How is hashcode calculated in java?
How to retrieve data from database in java using arraylist?
What is difference between calling start() and run() method of thread?
Why char array is preferred over string for storing password?
How many types of constructors are used in java?
What are multiple inheritances?
Is ++ operator thread-safe in java?
How many digits is int32?
What is a linkedhashmap java?
What happens if main method is not static?
What is the largest long allowed by java?
What is the exact difference in between unicast and multicast object? Where we will use?
define the terminology association.