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
Explain the difference between intermediate and terminal operations in java8?
Can we override the overloaded method?
Can java list contain duplicates?
What is the use of parseint in java?
How do you convert int to char in java?
Is 0 a prime number?
What is the file extension for java?
What is sortedset in java?
What interface is extended by awt event listeners?
What is the null?
What are the five major types of reference sources?
Why string is immutable with example?
What is return keyword in java?
How do you declare an empty string?
What do u mean by variable?