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
How many bytes are there?
What is difference between class and object in java?
Does java vector allow null?
Where can I find jdk in my computer?
What is an abstract method in java programming?
What is stringreader?
Can java arraylist hold different types?
What is difference between static and abstract class?
how to open and edit XML file in Weblogic???
What is natural ordering in java?
How do you take thread dump in java?
What is a boolean structure?
What is the function of compareto in java?
How to stop a thread in java? Explain about sleep () method in a thread?
What is the difference between the file and randomaccessfile classes?