Styrow.dev
Question 146 of 247
Java Topic: General medium

Is that the only way to initialize the object in that case?

Question

Is that the only way to initialize the object in that case?

Answer

We can also do so using static block.