PRO192_-_FA_2023_-_FE_1027.webp
Erza_girl

PRO192_-_FA_2023_-_FE_1027.webp

20
(Choose 2 answers)
Shape and Main are defined in the same package, examine the code and select the correct statements.(select 2)
A. The class Main will print Shape.
line2>public void print() {
line1> class Shape {
line3>System.out.println("Shape");
B. If the code on line 2 is changed as follows, the class Main will print Shape:
line4>
}
private void print() {
line6> class Main {
line5> }
C. If the code on line 2 is changed as follows, the class Main will print Shape:
line7>line8>public static void main(String... args) { Shape anShape = new Shape();
void print() {
line9>anShape.print();
line10>}
D. If the code on line 2 is changed as follows, the class Main will print Shape:
line11> }
default void print() {


Thông tin

Category
PRO192
Thêm bởi
Erza_girl
Ngày thêm
Lượt xem
4,110
Lượt bình luận
21
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_FA_2023_-_FE_1027.webp
File size
62.7 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom