what is the difference between statis block and static
variable
Answer Posted / narasimha
i wolud like a new point to the above answer.
first the static varibles are inistalized then the static
bloks are executed.
Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
What’s the difference between the methods sleep() and wait()?
Write a program to calculate factorial in java?
Which one of the following suits the description of a string better: derived or primitive?
Define nashorn in java8.
What is a concrete classes? Is Java object class is concrete class?
What is navigable map in java?
What is an inner class in java?
What is string in java?
Which is bigger float or double java?
what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread
What are the actions that can occur when a thread enters blocked state?
What type of variable is error flag?
What is break and continue statement?
How do you add an element to an arraylist in java?
How can we make sure main() is the last thread to finish in java program?