A. 0
B. It fails to compile.
C. nothing
D. 10
E. A java.lang.IllegalArgumentException is thrown.
A. catch(FileNotFoundException | IndexOutOfBoundsException e) { }
B. catch(FileNotFoundException e) { }catch(IndexOutOfBoundsException e) { }
C. catch(IOException e) { }
D. catch(FileNotFoundException | IOException e) { }
E. catch(IndexOutOfBoundsException e) { }catch(FileNotFoundException e) { }
A. The code prints nothing.
B. 0 8 10
C. 0 8
D. 0
E. 0 4 9
A. The compilation fails.
B. 80
C. 3
D. 25
E. 385
A. System.out is an instance of java.io.OutputStream by default.
B. System.in is the standard input stream. The stream is already open.
C. System.out is the standard output stream. The stream is open only when System.out is called.
D. System.in cannot reassign the other stream.
A. 234
B. 2143
C. 214
D. 2134
A. A java.lang.NullPointerException is thrown.
B. True
C. A java.lang, UnsupportedOperationException is thrown.
D. False
B. 2341
A. An exception is thrown at runtime
B. Null
C. Def 42
D. 41 def 42
A. name, isBlanl ()
B. name. compareTo('' '') == 0
C. name.trim() == '' ''
D. name.isEmpty
A. javac fails to compile the class and prints the error message, C:\workspace4\Mycar.java:1:error: package java does not exist
B. javac fails to compile the class and prints the error message, C:\workspace4\Mycar.java:1:error: expected import java.lang
C. javac compiles Mycar.java without errors or warnings.
D. javac fails to compile the class and prints the error message, Error: Could not find or load main class Mycar.class
A. prefix + getName
B. Main.prefix + Main.getName()
C. Main.prefix + Main.name
D. prefix + Main.name
E. new Main().prefix + new Main().name
F. prefix + name
A. var lines = Files.lines(Paths.get(INPUT_FILE_NAME));
B. var lines = Files.readAllLines(Paths.get(INPUT_FILE_NAME));
C. Stream<String> lines = Files.lines(INPUT_FILE_NAME);
D. Stream lines = Files.readAllLines(Paths.get(INPUT_FILE_NAME));
A. char
B. String
C. String[ ]
D. Character
A. Object value 25
B. Short value 25
C. The compilation fails due to an error in line 1.
D. Byte value 25
A. 1 2 [1, 2, 3, 4] 3 4
B. 1 2 [1, 2, 3, four] 3 4
C. 1 2 [1, 2, 3, four] 3 four
D. 1 2 [1, 2, 3, 4] 3 four