Trong Java, để khai báo một lớp, ta sử dụng từ khóa nào?

Câu hỏi về lập trình Java

Quiz
•
Fun
•
University
•
Easy
Phùng Đông
Used 1+ times
FREE Resource
Student preview

75 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
class
def
function
struct
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào dùng để kết nối Java với cơ sở dữ liệu MySQL?
Connection.connect()
DriverManager.getConnection()
Database.connect()
SQLDriver.getConnection()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để xử lý ngoại lệ trong Java, ta sử dụng cấu trúc nào?
try-catch
if-else
do-while
for-each
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Java sử dụng kiểu dữ liệu nào để đại diện cho số thực?
int
char
float
double
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mệnh đề nào trong Java giúp trả về giá trị từ một phương thức?
stop
return
end
break
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Java, từ khóa nào giúp kế thừa một lớp?
implements
extends
inherits
derives
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để tạo một đối tượng mới trong Java, ta sử dụng từ khóa nào?
new
create
construct
define
Create a free account and access millions of resources
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade