Home / Report Question

Q. What should be the execution order, if a class has a method, static block, instance block, and constructor, as shown below?
  • A. Instance block, method, static block, and constructor
  • B. Method, constructor, instance block, and static block
  • C. Static block, method, instance block, and constructor
  • D. Static block, instance block, constructor, and method

Correct Answer: D