8
Given the following Java code:
class Up{public Up(String s) { } System.out.print("B"); }
public class Down extends Up{
public Down(String s) { System.out.print("D"); } public static void main(String[] args){new Down("C");System.out.println(" ");}
What is the result?
A. BD
B. DB
C. BDC
D. DBC
E. Compilation fails