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
Explain the importance of join() method in thread class?
How to pass arraylist to stored procedure in java?
What is consumer interface?
What is string substring?
Is empty list java?
what is the swingutilities.invokelater(runnable) method for? : Java thread
What is output buffer?
What is downcasting?
If we don’t want some of the fields not to serialize how to do that?
What does || || mean in math?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?
What are green threads in java?
What is the instance of an object?
Explain static nested classes ?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?