Java - Coding Bootcamp Flashcards

1
Q

Syntax for sorting

A

java.util.Arrays.sort(content);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Time complexity of merge sort

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Syntax to define a HashSet

A
Set set = new HashSet(){{
 add("a");

}};

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to concatenate strings

A

String s3 = s1 + s2;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly