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 significance of continue jump statement? Explain with an example.
What are classloaders?
What do you mean by local variable and instance variable?
Have you ever used hashtable and dictionary?
Explain the difference between the public, private, final, protected, and default modifiers?
Explain how hashmap works?
What is difference between fileinputstream and filereader in java?
How to create com object in Java?
What are the advantages of defining packages in java?
What is array class in java?
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
What is array in java?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
Do I need java for windows 10?