mediumstream pipelines
Which list is produced by mapping toLowerCase?
List<String> r = Stream.of("A","B","C").map(String::toLowerCase).toList();Read the full question →Streams, generics, concurrency: interview-grade Java.
Difficulty mix: 3 easy, 7 medium and 5 hard. The questions are drawn from the Java library at the moment you start, so sitting the test twice does not give you the same paper.
44 Java topics are in scope. These are the real topic labels on the questions.
Six real Java questions from the same pool, snippet included. The answer options and explanations are not shown here. Those come after you attempt them.
List<String> r = Stream.of("A","B","C").map(String::toLowerCase).toList();Read the full question →int i = 5; int s = i++ + i++; System.out.println(i);Read the full question →record Point(int x, int y) {}
static String format(Object o) {
return switch (o) {
case Point(int x, int y) -> "x+y=" + (x + y);
default -> "?";
};
}Read the full question →long c = IntStream.iterate(1, i -> i*2).limit(3).count();\nSystem.out.println(c);Read the full question →class A {\n static { System.out.print("A"); }\n A() { System.out.print("B"); }\n}\nnew A();Read the full question →int x = 5;\nx = x++;\nSystem.out.println(x);Read the full question →Prefer to pick your own questions? Browse all Java questions. See the other 10 tests.