题目内容

下列排序方法中,最坏情况下时间复杂度最小的是

A. 冒泡排序
B. 快速排序
C. 堆排序
D. 直接插入排序

查看答案
更多问题

The for loop has been enhanced in Java 5.0. Which is not a common term for the improved for loop

A. The for in loop
B. The specialized for loop
C. The for each loop
D. The enhanced for loop

打开报表时,首先发生的事件是

A. 打开(Open)
B. 加载(Load)
C. 激活(Activate)
D. 成为当前(Current)

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.

答案查题题库