多项选择题

Given two files:
1. package com.wickedlysmart2;
2. public class Utils {
3. void do1() {System.out.print("do1 "); }
4. protected void do2() {System.out.print("do2 ");
5. public void do3() {System.out.print("do3 "); }
6. }
1. import com.wickedlysmart2.*;
2. public class UPS extends Utils {
3. public static void main(String[] args) {
4. Utils u = new Utils();
5. u.do1();
6. u.do2();
7. u.do3();
8. } }
What is the result (Choose all that apply.)

A.do1 do2 do3
B."do1 ", followed by an exception.
C.Compilation fails due to an error on line 4 of UPS.
D.Compilation fails due to an error on line 5 of UPS.
E.Compilation fails due to an error on line 6 of UPS.
F.Compilation fails due to an error on line 7 of UPS.
题目列表

你可能感兴趣的试题

微信扫码免费搜题