OOP - Assignment 1
OOP - Assignment 1
th
Submission Deadline: 9 April, 2021 Submission Format: MS Word File
What to do?_______________________________________________________
There are special blocks in JAVA that are executed at certain points in program execution. In this assignment,
you will search and understand these blocks.
Describe the difference between static block and instance (initializer) block. Write the difference in a way that the
concept of both these blocks is clarified. Moreover, also explain when and how many times each of these blocks
gets executed.
Write a program that uses static block and instance (initializer) block.