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
Can we override the static methods?
Is there any case when finally will not be executed?
How to avoid memory leak in java?
What is the integer of 16?
What are the skills required for core java?
What is difference between class and object in java?
What is a locale?
What are the Main functions of Java?
What are the rules for variable declaration?
What does math floor () do?
What does this mean java?
Which of the following is not an isolation level in the JDBC
Can java list contain duplicates?
Explain about anonymous inner classes ?
How we can run a jar file through command prompt in java?