Home > Java Programming > Variables and Loops > Questions and Answers
Q: |
What is the output for the below code ? public class A { static{System.out.println("static");} { System.out.println("block");} public A(){ System.out.println("A"); } public static void main(String[] args){ A a = new A(); }} | ||||||||||
|
Comment on this Question | |
Name: | |
|