
Woche 9
Authored by Hedi Chehaidar
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Welche Art von Exceptions können explizit behandelt werden ?
Checked
Unchecked
Beide
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Was ist die Ausgabe dieses Codes ?
null
exception
null
finally
exception
finally
null
exception
finally
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Wie viele abstrakte (nicht definierte) Methoden dürfen bei einer Functional Interface sein?
0
genau eine
höchstens eine
mindestens eine
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Welche Functional Interface müssen wir in der Methode sort() von der Klasse List als Parameter übergeben?
Comparator
Consumer
Supplier
Predicate
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Wir wollen eine Liste l von Typ Integer aufsteigend sortieren (von klein bis groß)
was darf nicht in der Lücke stehen?
l.sort(/*Lücke*/);
Integer::compareTo
Comparator.comparingInt(Integer::intValue)
(a , b) -> a - b
(a , b) -> b - a
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Was muss in der Lücke stehen?
Function<List<Integer> , List<Integer>> s = x -> { x.sort((a,b) -> a - b); return x; };
s./*Lücke*/(l);
get
accept
apply
sort
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Können wir eine Enhanced for loop über ein Objekt von einer Klasse benutzen, die nur die Interface Iterator<T> implimentiert?
Ja
Nein
Access all questions and much more by creating a free account
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?