Object Oriented Programming
Assignment No.: 1 Assignment Type: Individual
Max Marks: 10 Submission Platform: NUML LMS
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.
How to organize the assignment?_____________________________________
Provide a description of Static Block and Instance Initializer Block and their differences as mentioned above.
Include a program that uses these blocks. Try making such a program that clarifies the concept of these blocks.
Include an output screenshot of your program as well.