JAVA6

JAVA6

1st Grade

151 Qs

quiz-placeholder

Similar activities

14 - Solution Elementary - Unit 1 Review

14 - Solution Elementary - Unit 1 Review

1st - 5th Grade

151 Qs

English 3- Lesson 23: Personal pronoun-Possessive Adj-to be

English 3- Lesson 23: Personal pronoun-Possessive Adj-to be

1st - 3rd Grade

150 Qs

Class 5A

Class 5A

1st Grade

147 Qs

JAVA6

JAVA6

Assessment

Quiz

English

1st Grade

Medium

Created by

Cương Thọ

Used 125+ times

FREE Resource

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?