Kafka - with Java/Python
Given the following code snippet, what will be printed if the topic test-topic has two messages with values "Hello" and "World"?
consumer.subscribe(Collections.singletonList("test-topic"));
ConsumerRecords<String, String> records = consumer.poll(Duration.ofMillis(1000));
for (ConsumerRecord<String, String> record : records) {
System.out.println(record.value());
}