What is non static block in java
Answer Posted / mohan
In between {....}whatever u can write that consider as
Instance block or Non static block.
Ex:
class hai{
//Instance block
{
System.out.println("hi i'm Instance block....");
}
//Static block
static{
System.out.println("hi i'm Static block....");
}
}
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of using break in each case of switch statement?
Explain an intermediate language?
How can you handle java exceptions?
Explain importance of throws keyword in java?
What is java util concurrentmodificationexception?
What is jrmp?
What is the difference between preemptive scheduling and time slicing?
Can an interface implement another interface?
Does java have extension methods?
describe synchronization in respect to multithreading? : Java thread
Is static variable stored in heap?
What sorting algorithm does javascript use?
What is the java virtual machine?
How can you traverse a linked list in java?
What is the final field modifier?