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 the inheritance?
How do I know if java is installed?
What is the constructor?
What is the major advantage of external iteration over internal iteration?
What do you mean by scope of variable?
How to read and write image from a file ?
What does this mean java?
Why do we need data structure in java?
What is jvm? Why is java called the platform independent programming language?
What is the properties class?
Can we have a method name same as class name in java?
What is abstraction in java?
What is a return in java?
What are the advantages of java over C++?
Is vector ordered in java?