What will be output of this simple java program ?
Check answer below :
The static block and variables follow the order in which they appear. The variable b isn’t available to the static block. Hence, it will result in a compiler error.
© 2015 – 2016, www.topjavatutorial.com. All rights reserved. On republishing this post, you must provide link to original post