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
What are the 5 types of research methods?
Can a final variable be null?
What is exception in java?
How do you achieve singleton?
Why main method is static in java?
What is integer parseint?
Can an interface be final?
Differentiate between stringbuffer and stringbuilder in java.
What do the thread?class methods run() and start() do?
Explain about instanceof operator in java?
Can classes declared using the abstract keyword cab be instantiated?
Is arraylist a class in java?
What does I ++ mean?
How does hashset works in java?
Difference between a class and an object?