Start learning 50% faster. Sign in now
In this code, an ArrayList is created and populated with three elements. The add() method is used to insert 15 at index 1. This insertion shifts the other elements accordingly. Let's break down why the correct output is B and explain why the other options are incorrect: · Explanation of Correct Option (B): Initially, the ArrayList contains [10, 20, 30] . When list.add(1, 15) is executed, it inserts the value 15 at index 1 . This causes the elements at index 1 and 2 (i.e., 20 and 30 ) to be shifted one position to the right. After the insertion, the list looks like this: [10, 15, 20, 30] . The call to list.get(2) retrieves the element at index 2 , which is now 20 . · Why the Other Options Are Incorrect:
Two statements are given below, one labelled as Assertion (A) and other as Reason (R).
Assertion (A): Insect resistant transgenic cotton varietie...
What is the name of a dual-purpose Indian cattle breed that was widely exported to Latin American countries in the past?
Which instrument can be used to detect water adulteration in milk?
Raphanus sativas L is the botanical name of:
Which one is insect trap crop?
Enzyme that fixes CO₂ in C4 plants at Iow concentrations?
Indian Institute of Agricultural Biotechnology is situated at-
The herbicides which are ineffective on perennial plants that are able to regrow from roots or tubers.
A soil has BD 1.35 Mg/mᶾ and moisture content on weight basis is 10%. Find out moisture content on volume basis.
In which crop was the phenomenon of Heterosis first commercially exploited?