Online Access Free 1z0-830 Practice Test
| Exam Code: | 1z0-830 |
| Exam Name: | Java SE 21 Developer Professional |
| Certification Provider: | Oracle |
| Free Question Number: | 85 |
| Posted: | Jun 03, 2026 |
What does the following code print?
java
import java.util.stream.Stream;
public class StreamReduce {
public static void main(String[] args) {
Stream<String> stream = Stream.of("J", "a", "v", "a");
System.out.print(stream.reduce(String::concat));
}
}
Given:
java
double amount = 42_000.00;
NumberFormat format = NumberFormat.getCompactNumberInstance(Locale.FRANCE, NumberFormat.Style.
SHORT);
System.out.println(format.format(amount));
What is the output?