Which two classes make valid use of the ArrayList class in package java.util?

Which two classes make valid use of the ArrayList class in package java.util? (Choose two.)

Which two classes make valid use of the ArrayList class in package java.util? (Choose two.)

A.
package java.util;
public class Test {
public static void main(String args[]) {
ArrayList list = new ArrayList();
}

B.
import java.util.ArrayList;
public class Test {
public static void main(String args[]) {
ArrayList list = new ArrayList();
}

C.
import java.util;
public class Test {
public static void main(String args[]) {
ArrayList list = new ArrayList();
}

D.
public class Test import java.util.ArrayList {
public static void main(String args[]) {
ArrayList list = new ArrayList();
}

E.
public class Test {
public static void main(String args[]) {
java.util.ArrayList list = new java.util.ArrayList();
}

F.
package java.util.ArrayList;
public class Test {
public static void main(String args[]) {
ArrayList list = new ArrayList();
}



Leave a Reply 0

Your email address will not be published. Required fields are marked *