Home » Java Programming » Declarations and Access Control

What will be the output of the program? class Base { Base() { System.out.print("Base"); } } public class Alpha extends Base { public static void main(String[] args) { new Alpha(); /* Line 12 */ new Base(); /* Line 13 */ } }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!