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


Please Help Members By Posting Answers For Below Questions

I want to print “hello” even before main is executed. How will you acheive that?

894


Define iterator and methods in iterator?

743


Explain the importance of join() method in thread class?

847


What kind of variables a class can consist of?

853


Is java a virus?

721


If a class is declared without any access modifiers, where may the class be accessed in java programming?

895


List some important features of java 10 release?

724


Can we inherit a class with private constructor?

798


What is == mean?

751


What is java in simple terms?

762


Is set ordered?

734


When should a function throw an exception?

814


What’s a deadlock?

844


What is codebase?

756


What is the meaning of variable in research?

773