Core Java, Unix & Oracle

Set 10 – Java, Oracle, Unix Interview Questions

1. What is the return type of remove(Object) method of Collection interface? Choose the right option. 1. boolean 2. Object 3. int 4. Integer 2. What is the output of the following snippet of code? Choose the right option. List numbers1 = new ArrayList(); numbers1.add(2); numbers1.add(1); numbers1.set(1, 2); System.out.println(numbers1); 1. [1, 2] 2. [1, 1] …

Set 10 – Java, Oracle, Unix Interview Questions Read More »