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
Is oracle charging for java?
How to sort numbers in java without array?
What is collection sort in java?
Can we use a default constructor of a class even if an explicit constructor is defined?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
How can you write a loop indefinitely in java programming?
how does the run() method in runnable work? : Java thread
Can we have multiple public classes in a java source file?
What is the difference between this() and super() in java?
What are the different types of data structures in java?
Explain the JDB in depth & command line.
What is a local class in java?
What is bean? Where it can be used?
What does || mean in vectors?
Highest level event class of the event-delegation model?