Showing posts with label initialization. Show all posts
Showing posts with label initialization. Show all posts

Sunday, March 11, 2012

What is the rationale behind this code block in java?


What is the rationale behind making this kind of code valid in java? Does it exist for some particular reason or is it just a byproduct of other Java language design decisions? Can't you just use the consructor to achieve the same effect?