Home / MCQ Bank / Computer
Computer Collections Framework In Java Difficulty: Medium

Which of these methods deletes all the elements from invoking collection?

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following Java code? import java.util.*; class hashtable { public static void main(String args[]) { Hashtable obj = new Hashtable(); obj.put("A", new Integer(3)); obj.put("B", new Integer(2)); obj.put("C", new Integer(8)); System.out.print(obj.toString()); } } Who is the ancestor of Node H? What is the name given to the algorithm depicted in the pseudo code below? procedure generate(n : integer, Arr : array): if n = 1 then output(Arr) else for i = 0; i <= n - 2; i ++ do generate(n - 1, Arr) if n is even then swap(Arr[i], Arr[n-1]) else swap(Arr[0], Arr[n-1]) end if end for generate(n - 1, Arr ) end if What character shift tables does Boyer-Moore's search algorithm use? The option that enables multiple-statement execution is . . . . . . . .