what is the difference between statis block and static
variable
Answer Posted / ravikiran
static block is used to initialize the variables during the
Jvm start up.
static variable is used to declare the class level
variables whose value remains ame for the whole class.
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Mention some interfaces implemented by linked list in java.
Can we change the scope of the overridden method in the subclass?
What is procedure overloading?
Can a class have multiple superclasses?
What is the use of predicate in java 8?
What is a Presistent Object?
What is field name?
What are the important features of Java 11 release?
What is difference between protected and private?
Who developed java?
Define jit compiler?
What exactly is a .class file?
which pattern is default in scanner package?
What are the different types of inner classes?
Explain the advantages of packages in java?