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 are the four pillars of java?
How many types of literals are there in JAVA?
What is the difference between yield() and sleep()?
Why does java does not support multiple inheritance? Explain
What is the file extension for java?
Is empty in java?
What is a Presistent Object?
Why do I need to declare the type of a variable in java?
Explain reverse a linked list iterative solution in java?
What is a treeset class?
Explain the importance of thread scheduler in java?
Write code of any action class?
What is jit and its use?
Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.
Can we override the static methods?