A. An instance variable can be declared with the static modifier.
B. A local variable can be declared with the final modifier.
C. An inner class cannot be declared with the public modifier.
D. An interface can be declared with the protected modifier.
E. An abstract method can be declared with the private modifier.
A. The compilation fails.
B. Configuration is OK
C. Exception in thread "main" java.lang.Error:Fatal Error: Configuration File, App.config, is missing.
D. nothing
A. 7 10
B. 9 8
C. 8 9
D. 10 10
A. [0,0] = Red[0,1] = White[1,0] = Black[2,0] = Blue[2,1] = Yellow[2,2] = Green[2,3] = Violet
B. [0,0] = Red[1,0] = Black[2,0] = Blue
C. java.lang.ArrayIndexOutOfBoundsException thrown
D. [0,0] = Red[0,1] = White[1,0] = Black[1,1] = Blue[2,0] = Yellow[2,1] = Green[3,0] = Violet
A. false true true
B. true false false
C. false true false
D. false false true
A. catch(FileNotFoundException | IndexOutOfBoundsException e) { }
B. catch(IndexOutOfBoundsException e) { }catch(FileNotFoundException e) { }
C. catch(IOException e) { }
D. catch(FileNotFoundException e) { }catch(IndexOutOfBoundsException e) { }
E. catch(FileNotFoundException | IOException e) { }
A. char
B. List<Character>
C. String
D. List<String>
A. 0
B. It fails to compile.
C. nothing
D. 10
E. A java.lang.IllegalArgumentException is thrown.
A.
B.
C.
D.
E.
A. easier to expose implementation details
B. improves security and maintainability
C. easier to understand the Java language
D. easier to build a custom runtime linking application modules and JDK modules
E. improves application robustness