what is the difference between statis block and static
variable
Answer Posted / kiran
static variable are access and executed with objects or
methods(static or non-static) its a dependent.
static block executed and access independently when the
program starts
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is concurrent hashmap and its features?
How do you bind variables?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
What is finalize()?
What is the synchronized method modifier?
Can Exception handling we can handle multiple catch blocks?
Can we call thread start () twice?
What are keywords give examples?
What is a local class in java?
Write a program to solve producer consumer problem in java?
What do the thread?class methods run() and start() do?
What is difference between path and classpath?
Define an enumeration?
What’s the difference between constructors and other methods?
Why static functions are used?