What will be the output of the following Java program? class…
What will be the output of the following Java program? class Alpha { Alpha() { System.out.print(“Alpha “); } } class Beta extends Alpha { Beta() { System.out.print(“Beta “); } } class Gamma extends Beta { Gamma() { System.out.print(“Gamma “); } } public class Main { public static void main(String[] args) { Gamma g = new Gamma(); } }
Read Details