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

What does @override mean?

795


What do you mean by platform independence? What is an interface?

805


What is an array length?

700


Differentiate between the constructors and methods in java?

737


Explain working of call by reference function invoking.

803


Is java based on c?

768


What is the purpose of finalization in java programming?

806


What is immutable data?

831


what do you mean by marker interface in java?

777


Define max and min heap, also the search time of heap.

835


What is the role of garbage collector in java?

732


What is boolean query?

766


How do you replace all in word?

730


What is parameters example?

784


Why java is platform independent? Explain.

804