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 is the final keyword denotes in java?
Can final class have constructor?
What is sleep method?
why not override thread to make a runnable? : Java thread
Can we override static methods in java?
What is a package in java? List down various advantages of packages.
Can a main method be overloaded?
How do you read and print a string in java?
Does java trim remove newline?
how to create multithreaded program? Explain different ways of using thread? : Java thread
Difference between this() and super() in java ?
How to display arraylist values in java?
What is the difference between actual and formal parameters?
How can we run a java program without making any object?
What is the basic concepts of OOPS?