CGI Java Interview Questions & Answers
Вставка
- Опубліковано 30 лип 2024
- This video contains Java, Springboot, Microservices, Kafka interview questions and answers.
Accenture 1st Round Interview: • IBM Java Interview Que...
Accenture 2nd Round Interview: • Accenture | Round 2 | ...
Brillio 1st Round Interview: • Brillio | Round 1 | Ja...
Brillio 3rd Round Interview: • Brillio | Round 3 | Ja...
IBM Interview: • IBM Java Interview Que...
Nagarro Interview: • Nagarro Java Interview...
Concentrix Interview: • Concentrix (PKGlobal) ...
Wipro Interview: • Wipro Java Interview Q...
Wipro 2nd Round Interview: • Wipro | Round 2 | Java...
Facebook: / javatechlead
Instagram: / javatechlead
Twitter: / javatechlead
Mail: javatechlead123@gmail.com
#java #springboot #microservices #java8 #elasticsearch #kafka #spring #javaInterviewQuestions #JavaInterviewQuestionsandAnswers #JavaInterview #CoreJavaInterviewQuestions #JavaInterviewQuestionsandAnswersForExperienced - Наука та технологія
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
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));
}
}
Is this real interview?
Horrific quality, but good content.