What will be output of this simple java program ?
package quiz; public class StaticQuiz { static int a = 5; static{ a = a + 5; } static void square(int num){ System.out.println("Square of " + num + " = " + num*num); } public static void main(String[] args) { int a = 5; square(a); } }
© 2015 – 2016, https:. All rights reserved. On republishing this post, you must provide link to original post