Розмір відео: 1280 X 720853 X 480640 X 360
Показувати елементи керування програвачем
Автоматичне відтворення
Автоповтор
Normal map we get concurrent modifiable exception when one iterator is iteratating and other iterator tries to update anything.Hence iterator of hash map is fail fast
little correction "concurrent modification exception"
Default size not 10 it's 16 and in a hashmap and when we insert as a Single null key then hashmap treats as first' indexed in 0 place
correct
And when default size filled with 75% , it will automatically increases size by 2X time. i.e will become 32
Is this real interview?
bro,, code at 10:00 ?
package com.demo;import java.util.HashMap;public class Demo { public static void main(String[] args) { HashMap hm = new HashMap(); hm.put("Raju", "Raju"); hm.put("Kiran", "Kiran"); hm.put("Suman", "Suman"); hm.put("Ramu", "Ramu"); hm.entrySet().stream().map(e->e.getValue()).sorted((e1,e2)->e1.compareTo(e2)).forEach(e->System.out.println(e)); }}
Horrific quality, but good content.
Normal map we get concurrent modifiable exception when one iterator is iteratating and other iterator tries to update anything.Hence iterator of hash map is fail fast
little correction "concurrent modification exception"
Default size not 10 it's 16 and in a hashmap and when we insert as a Single null key then hashmap treats as first' indexed in 0 place
correct
And when default size filled with 75% , it will automatically increases size by 2X time. i.e will become 32
Is this real interview?
bro,, code at 10:00 ?
package com.demo;
import java.util.HashMap;
public class Demo {
public static void main(String[] args) {
HashMap hm = new HashMap();
hm.put("Raju", "Raju");
hm.put("Kiran", "Kiran");
hm.put("Suman", "Suman");
hm.put("Ramu", "Ramu");
hm.entrySet().stream().map(e->e.getValue()).sorted((e1,e2)->e1.compareTo(e2)).forEach(e->System.out.println(e));
}
}
Horrific quality, but good content.