What is non static block in java
Answer Posted / raj_allinterview
Non static block is a block which is surounded by { and }
for ex :
{
//code goes here
}
The code within non static block is executed whenever a new
instance of that class is created.
It is instance block.
Is This Answer Correct ? | 25 Yes | 2 No |
Post New Answer View All Answers
What is a control variable example?
hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea
What is parse method?
How do you invoke a method?
What is variable and its types?
What is a instance variable?
What is an object in java?
Can size_t be negative?
What is a functional interface?
Is hashset ordered?
What is square root in java?
Is java hard to learn?
List some java keywords sun like c, c + + keywords?
What is cr keyboard?
String class is defined under which package in java?