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
What is the difference between serializable and externalizable interfaces?
What are green threads in java?
What is difference between length and length() method in java ?
What do u mean by variable?
Is singleton thread safe in java?
What is the difference between length and length () in java?
What is variable and rules of variable?
Can a private method be declared as static?
Can you explain the final method modifier?
Define inheritance?
What are the elements of java?
How many threads can java run?
Can the garbage collection be forced by any means?
Is java call by value?
What are data structures in java?