What is non static block in java
Answer Posted / srinivasa
Instance methods are called non static blocks. Because we
can't call them without creating the object.Constructor is
also a non static block. Non Static means other than the
static block and static methods in a class . So we ca the
above two as non static block.
Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
I want to print “hello” even before main is executed. How will you acheive that?
Define iterator and methods in iterator?
Explain the importance of join() method in thread class?
What kind of variables a class can consist of?
Is java a virus?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
List some important features of java 10 release?
Can we inherit a class with private constructor?
What is == mean?
What is java in simple terms?
Is set ordered?
When should a function throw an exception?
What’s a deadlock?
What is codebase?
What is the meaning of variable in research?