what is the difference between static block and static
method

Answer Posted / anu

static block is execute first after the remaining blocks will executes.
static metods can executes using classname.staicmethodname

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a priority queue java?

723


Can a constructor call the constructor of parent class?

784


What is valid keyword in java?

764


Is vector synchronized in java?

722


What is jar?

847


Is space a character in java?

761


What is garbage collector?

819


What is math exp in java?

776


what is meant by Byte code concept in Java?

793


Is empty in java?

801


What is empty string literal in java?

789


What are the types of relation?

795


What is the differences between heap and stack memory in java? Explain

738


What is the purpose of the System class?

775


Which command from the jdk compiles a java program?

676