What is the result?

Given the code fragment: What is the result?

Given the code fragment: What is the result?

A.
Values are : [EE, ME, SE, EE]

B.
Values are : [EE, ME]

C.
Values are : [EE, EE, ME]

D.
Values are : [EE, ME, EE]

E.
Values are : [SE, EE, ME, EE]



Leave a Reply 2

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


ARJIT GAUTAM

ARJIT GAUTAM

Values are : [EE, ME, SE, EE] after removal of SE

harish

harish

Question is:
public static void main(String args[]){
ArrayList list = new ArrayList();
list.add(“SE”);
list.add(“EE”);
list.add(“ME”);
list.add(“SE”);
list.add(“EE”);
list.remove(“SE”);
System.out.println(“Values are: “+list);
}