1Z0-830 Web TestEngine demo

Exit VCEDump 1Z0-830 Java SE 21 Developer Professional
Question 3 of 15
0% complete
Q3 Single choice

Given:

java

Object myVar = 0;

String print = switch (myVar) {

case int i -> "integer";

case long l -> "long";

case String s -> "string";
default -> "";

};

System.out.println(print);

What is printed?

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in