
JAVA6
Quiz
•
English
•
1st Grade
•
Practice Problem
•
Medium
Cương Thọ
Used 125+ times
FREE Resource
Enhance your content in a minute
151 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
15 mins • 1 pt
Chon interface
@FunctionalInterface
public interface Demo4Inter{
void m1(int x);
}
Hãy chọn mã đúng khi tạo đối tượng
Demo4Inter o4 = x - > System.out.println(x);
Demo4Inter o3 = x - > {};
Demo4Inter o1 = new Demo4Inter() { @Override public void m1(int x) {} };
Demo4Inter o2 = new Demo4Inter() { @Override public void m1(int x) {} public void m2() {} };
2.
MULTIPLE SELECT QUESTION
15 mins • 1 pt
Chon interface
@FunctionalInterface
public interface Demo4Inter{
void m1(int x);
}
Hãy chọn mã đúng khi tạo đối tượng
Demo4Inter o3 = x - > {};
Demo4Inter o4 = x - > System.out.println(x);
Demo4Inter o1 = new Demo4Inter() { @Override public void m1(int x) {} };
Demo4Inter o2 = new Demo4Inter() { @Override public void m1(int x) {} @Override public void m2() {} };
3.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Đâu là cú pháp đúng của phương thức readValue() trong ObjectMapper
1. readValue(source, Class < T > ): T
2. readValue(source, TypeReference < T > ): T
1 sai, 2 đúng
1 đúng, 2 đúng
1 sai, 2 sai
1 đúng, 2 sai
4.
MULTIPLE SELECT QUESTION
15 mins • 1 pt
Đâu là phương thức trung gian trong Stream API?
filter()
map()
sorted()
forEach()
5.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Đâu là phương thức trung gian trong Stream API?
count()
min()
mapToDouble()
max()
6.
MULTIPLE SELECT QUESTION
15 mins • 1 pt
Cho lớp Student:
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
String name;
Boolean gender = false;
Double marks = 0.0;
}
Hãy điền mã đúng vào chỗ trống:
List < Student > list = Arrays.asList(
new Student("Nguyễn Văn Tèo", true, 7.5)
...
);
Collections.sort(list, _____);
(sv1, sv2) - > sv1.getName().compareTo(sv2.getName())
(sv1, sv2) - > { return sv1.getName().compareTo(sv2.getName());}
(sv1, sv2) - > sv1.getName().compareTo(sv2.getName());
(sv1, sv2) - > { return sv1.getName().compareTo(sv2.getName())}
7.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Đâu là các phương thức của ObjectMapper được sử dụng để đọc nguồn dữ liệu JSON và cho kết quả là JSonNode
readTree()
readValue()
writeValueAsString()
writeValue()
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for English
20 questions
How the Grinch Stole Christmas
Quiz
•
KG - 3rd Grade
15 questions
Grammar
Quiz
•
KG - 7th Grade
58 questions
ELA study quiz
Quiz
•
1st Grade
40 questions
Semester Assessment Review
Quiz
•
1st - 5th Grade
10 questions
Exploring Informational Text Structures in English
Interactive video
•
1st - 5th Grade
15 questions
Pronouns
Quiz
•
KG - 3rd Grade
12 questions
Sneezy the Snowman
Quiz
•
1st Grade
16 questions
R Controlled Vowels
Quiz
•
1st - 4th Grade
