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
What loop means?
How many ways can you break a singleton class in java?
Define an enumeration?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
What is the nested interface?
Why vector is used in java?
What is string substring?
How can you generate random numbers in java?
What is mutable object and immutable object?
Why is method overloading not possible by changing the return type in java?
What is tcp ip in java?
What is the difference between logical data independence and physical data independence?
How do you replace a string in java?
What is a conditional statement explain with example?
How do you compare two objects?