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 is classpath?
What checkbox method allows you to tell if a checkbox is checked?
Can we have any code between try and finally blocks?
What is compiler and what its output.
What is use of super keyword?
What is callablestatement? How you can call stored procedure to pass in parameter?
What is the largest long allowed by java?
What is the use of beaninfo?
What are the special characters?
What is double parsedouble in java?
I want to persist data of objects for later use. What is the best approach to do so?
Why javac is not recognized?
What is linked hashset and its features?
Why webdriver is an interface?
What are daemon Threads in java?