Which command-line usages appropriately set a system property value
A. java -Dcom.ocajexam.propertyValue=003 MainClass
B. java -d com.ocajexam.propertyValue=003 MainClass
C. java -prop com.ocajexam.propertyValue=003 MainClass
D. java -D:com.ocajexam.propertyValue=003 MainClass
查看答案
You need to update a value of a hash table (that is, HashMap) where the primary key must equal a specified string. Which statements would you need to use in the implementation of this algorithm
A. Iteration statement
B. Expression statement
Conditional statement
D. Transfer of control statement
Which two command-line usages appropriately identify the classpath
A. javac -cp/project/classes/MainClass.java
B. javac -sp/project/classes/MainClass.java
C. javac -classpath/project/classes/MainClass.java
D. javac -classpaths/project/classes/MainClass.java
A switch statement works with which wrapper class/reference type(s)
A. Character
Byte
C. Short
D. Int
Which of the following statements will not compile
A. if(true);
B. if(true) {}
C. if(true) {;}
D. if(true) {;;}
E. if(true); {};
F. All statements will compile.