What does the following output? Stream <character> chars = Stream.generate(() -> ’a’); chars.filter(c -> c < ’b’) .sorted() .findFirst() .ifPresent(System.out::print);
A、a
B、The code runs successfully without any output.
C、The code enters an infinite loop.
D、The code compiles but throws an exception at runtime.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!