What will be output of this simple java program ?
Click below button to answer the quiz and see the correct answer
© 2015 – 2016, www.topjavatutorial.com. All rights reserved. On republishing this post, you must provide link to original post
© 2015 – 2016, www.topjavatutorial.com. All rights reserved. On republishing this post, you must provide link to original post
#
This is strange because static methods cannot be overriden and wheather the invoked static method throws a checked exception or not, is known at the compile time by deducing from the declaration type of the variable.so these two static methods should have nothing in common