Question 11:

Consider the following class.

---

public class Ticket {
	private static int nextId = 1;
	private int id;

	public Ticket() {
		id = nextId;
		nextId++;
	}

	public int getId() {
		return id;
	}
}

---

What is printed after executing: 

---

Ticket t1 = new Ticket(); 
Ticket t2 = new Ticket(); 
Ticket t3 = new Ticket(); 
System.out.println(t1.getId() + " " + t3.getId());

---

A. 1 3
B. 1 1
C. 3 3
D. 0 2
