12345678910



Question 1: What will be the output of the following program?
1. public class Test1 {
2. static{
3. System.out.println("Static");
4. }
5. {
6. System.out.println("Instance");
7. }
8. public void Test1(){
9. System.out.println("Constructor");
10. }
11. public static void main(String[] args) {
12.
13. Test1 t = new Test1();
14. } }

1. Instance
Static
2. Static
Instance
3. Static
Instance
Constructor
4. Static