Đoạn mã sau in ra màn hình xâu ký tự nào sau:class Student {public String sayHello() {return "Student";}}public class Man extends Student {public String sayHello() {return super.sayHello();}public static void main(String[] args) {Student m = new Student();System.out.println(m.sayHello());}}
Nguyễn Thanh Thảo | Chat Online | |
07/09 12:07:13 (Tin học) |
5 lượt xem
Đoạn mã sau in ra màn hình xâu ký tự nào sau:class Student {public String sayHello() {return "Student";}}public class Man extends Student {public String sayHello() {return super.sayHello();}public static void main(String[] args) {Student m = new Student();System.out.println(m.sayHello());}}
Vui lòng chờ trong giây lát!
Lựa chọn một trả lời để xem Đáp án chính xác Báo sai đáp án hoặc câu hỏi |
Số lượng đã trả lời:
A. Student 0 % | 0 phiếu |
B. Man 0 % | 0 phiếu |
C. Student Man 0 % | 0 phiếu |
D. Man Student 0 % | 0 phiếu |
Tổng cộng: | 0 trả lời |
Bình luận (0)
Chưa có bình luận nào, bạn có thể gửi ý kiến bình luận tại đây:
Trắc nghiệm liên quan
- Cho khai báo mảng sau. Lệnh trên in ra cái gì?String[][] str = {"lap", "trinh", "java"};System.out.println(str[1][1]); (Tin học)
- Đâu là một khai báo lớp kế thừa từ hai giao điện đúng? Chọn một câu trả lời (Tin học)
- Phương thức nào đưa vào dòng 6 sẽ sinh lỗi?class Super {public float getNum() {return 3.0f;}}public class Sub extends Super {} (Tin học)
- Xây dựng lớp Time trong java như hình trên, phương thức là: (Tin học)
- Đoạn lệnh nào sẽ đưa ra lỗi biên dịch? Chọn một câu trả lời (Tin học)
Trắc nghiệm mới nhất
- Australia is no stranger to wildfires, but this season has been unprecedented in scale and intensity - and the summer is far from over. This country's deadly fires have been fueled by a combination of extreme heat, prolonged drought and strong winds. ... (Tổng hợp - Lớp 12)
- Australia is no stranger to wildfires, but this season has been unprecedented in scale and intensity - and the summer is far from over. This country's deadly fires have been fueled by a combination of extreme heat, prolonged drought and strong winds. ... (Tổng hợp - Lớp 12)
- Australia is no stranger to wildfires, but this season has been unprecedented in scale and intensity - and the summer is far from over. This country's deadly fires have been fueled by a combination of extreme heat, prolonged drought and strong winds. ... (Tổng hợp - Lớp 12)
- Australia is no stranger to wildfires, but this season has been unprecedented in scale and intensity - and the summer is far from over. This country's deadly fires have been fueled by a combination of extreme heat, prolonged drought and strong winds. ... (Tổng hợp - Lớp 12)
- Australia is no stranger to wildfires, but this season has been unprecedented in scale and intensity - and the summer is far from over. This country's deadly fires have been fueled by a combination of extreme heat, prolonged drought and strong winds. ... (Tổng hợp - Lớp 12)
- Bamford is very good at playing football. His father is a famous footballer. (Tổng hợp - Lớp 12)
- Although incomes have increased significantly, they have not kept up with the cost of living. (Tổng hợp - Lớp 12)
- "Why didn't you attend the party, Hoa?" Van asked. (Tổng hợp - Lớp 12)
- After fifteen years of hard work, Flora decided to retire. (Tổng hợp - Lớp 12)
- Trên các cánh đồng lúa ở miền Bắc, nhiều nơi lúa bị chuột phá hoại rất mạnh. Dựa vào đặc điểm sinh học của chuột và xem xét ở góc độ sinh thái học, biện pháp nào dưới đây có hiệu quả nhất trong việc làm giảm số lượng quần thể chuột một cách bền vững? (Sinh học - Lớp 12)