When instantiating an object with generics, should angle brackets, box brackets, parentheses, or double-quotes be used to enclose the generic type Select the appropriate answer.
A. List <Integer> a = new ArrayList <Integer> ();
B. List [Integer] a = new ArrayList [Integer] ();
C. List {Integer} a = new ArrayList {Integer} ();
D. List "Integer" a = new ArrayList "Integer" ();
查看答案
Given: public class Dinner { public static void main (String[] args) { boolean isKeeperFish = false; if (isKeeperFish = true) { System.out.println("Fish for dinner"); } else { System.out.println("Take out for dinner"); } } } What will be the result of the application’s execution
A. Fish for dinner will be printed.
B. Take out for dinner will be printed.
C. A compilation error will occur.
子过程Plus完成对当前库中"教师表"的工龄字段都加1的操作。Sub Plus( ) Dim ws As DAO.Workspace Dim db As DAO.Database Dim rs As DAO.Recordset Dim fd As DAO.Field Set db = CurrentDb() Set rs = db.OpenRecordset("教师表") Set fd = rs.Fields("工龄") Do While Not rs.EOF rs.Edit 【 】 rs.Update rs.MoveNext Loop rs.Close db.Close Set rs = Nothing Set db = NothingEnd Sub程序空白处应该填写的语句是
A. fd = fd + 1
B. rs = rs + 1
C. 工龄 = 工龄 + 1
D. rs.fd = rs.fd + 1
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