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.
Is that the only way to initialize the object in that case?
We can also do so using static block.