Java Program #1

What is the output of the following Java program?

RUN CODE ONLINE
class First 
{ 
	public First() { System.out.println("a"); } 
} 

class Second extends First 
{ 
	public Second() { System.out.println("b"); } 
} 

class Third extends Second 
{ 
	public Third() { System.out.println("c"); } 
} 

public class MainClass 
{ 
	public static void main(String[] args) 
	{ 
		Third c = new Third(); 
	} 
} 

Output

a
b
c