What is non static block in java
Answer Posted / varun reddy
Non-static block is called anonymous block.the block of code which is return inside a non static block is executed on creation of object and before invoking clonstructor.
Syntax of non static block::::-------
{
statements;
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
List some important features of java 10 release?
How does map works in java?
What is the flag in java?
What are some alternatives to inheritance?
What is a string token?
Can finally block be used without a catch?
What is the synchronized method modifier?
What is the difference between exception and error in java?
Why map is used in java?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
Can we override the static method?
What is ‘is-a ‘ relationship in java?
Can we assign the reference to this variable?
What is the buffer limit?
What are java threads?