Programology – Telegram
Programology
7.29K subscribers
1.94K photos
771 videos
6 files
2.08K links
Pro·​gram | \ ˈPrō-ˌgram , -grəm \
:A Sequence Of Coded Instructions That Can Be Inserted Into A Mechanism (Such As A Computer)

Who We Are : https://msha.ke/programmerjokesofficial
Download Telegram
Answer: d
Explanation: obj is an object of class ArrayLists hence it is an dynamic array which can increase and decrease its size. obj.add(“X”) adds to the array element X and obj.add(1,”X”) adds element x at index position 1 in the list, Hence obj.add(1,”D”) stores D at index position 1 of obj and shifts the previous value stored at that position by 1.
Output:
$ javac Arraylist.java
$ java Arraylist
[A, D, B, C].
👎1
Thank you IT Guy..!!♥️♥️
17🥰3🔥1
Comment Output
Options
Anonymous Quiz
26%
A
40%
B
16%
C
18%
D
95% 🐻 Bear 😂
😁114👍1
Comment Output
Options
Anonymous Quiz
46%
A
10%
B
4%
C
41%
D
I am potato🥔🍟
😁4👍1
Comment Output
Options
Anonymous Quiz
35%
A
14%
B
3%
C
48%
D
👍3
Dedication 😂 😂
👍3
Comment Output
👍1