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 do you understand by the term singleton?
What are computer functions?
What is the difference between applet and application?
Why can we not override static method?
How to check if linked list contains loop in java?
How many types of assembly languages are there?
How java enabled high performance?
Is it safe to install java on my computer?
What happens if an exception is throws from an object's destructor?
How do singleton patterns work?
What is the final keyword?
Write a function for palindrome and factorial and explain?
How do you replace all in word?
What is null statement?
Can each java object keep track of all the threads that want to exclusively access it?