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


Please Help Members By Posting Answers For Below Questions

How arrays are stored in memory in java?

513


How do you empty a list in java?

540


What is the difference between equals() and?

589


What are the four versions of java?

547


What is the association?

557






How do you sort words in java?

538


How many bytes are a float?

509


Which is bigger double or float?

530


How does linkedhashmap work in java?

519


Can we clone singleton object in java?

566


What purpose do the keywords final, finally, and finalize fulfill?

612


Difference between concurrent hashmap and hashtable and collections

566


What are the differences between forwarding () method and sendredirect() methods?

621


How many bytes is double?

549


Explain the importance of import keyword in java?

524