similar kind of problem which is in last i have written code for that Person p1 = new Person("Altrin",28,143000); Person p2 = new Person("Ruban",28,243000); Person p3 = new Person("Maduram",28,443000); Person p4 = new Person("Maduram",28,343000); Person p5 = new Person("Maduram",28,342000); Person p6 = new Person("Altrin",28,143000); Mapmp = new HashMap(); mp.put(1,p1); mp.put(2,p2); mp.put(3,p3); mp.put(4,p4); mp.put(5,p5); mp.put(6,p6); System.out.println("before sorting "+mp); mp.entrySet().stream().sorted(Map.Entry.comparingByValue(Comparator.comparing(Person::getSalary).reversed())) // Sort by values .collect(Collectors.toMap( Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, // Merge function; not needed here as keys are unique LinkedHashMap::new // Preserve insertion order )).entrySet().stream().forEach(System.out::println);
@nagasrinivas2289Ай бұрын
Bro, we have to improve a lot as you are having close to 6 years of experience.All the best.
@codeAtoZАй бұрын
Yeah thanks
@saravanasathish423Ай бұрын
Bro, even if you have 10 years of experience, you will not know all things in Java, And while building application, do you think we will consider all the concepts whatever he is asking? They just need to filter the candidates that’s it
@game_z19893 ай бұрын
Next level questions🔥
@rishabhkumar38403 ай бұрын
The interview questions were good.
@bhavanagattu59583 ай бұрын
Can you post the last streams question ...like
@codeAtoZ3 ай бұрын
May I know which question are you talking about?
@bhavanagattu59583 ай бұрын
@@codeAtoZ streams?
@codeAtoZ2 ай бұрын
@@bhavanagattu5958 yes
@sikubhai9632 ай бұрын
Hi Roy! This is Sri I am a graduate 2021 and having experience of manual software testing of 21 months and I took training in java and want to start as fresher in java can how can I get a job? Do company people accept like my profiles? Please say
@codeAtoZ2 ай бұрын
Gap is big but you can start with startups
@ScientificMyths27062 ай бұрын
I am 18 passout and switched to a product based company as Senior Software Dev after being in a service based company for 4 years. And , the fun part is I have no prior dev experience.
@abhishekgupta-zd3zk3 ай бұрын
@codeAtoZ how have you deal with the 3 month notice period because when i tell me the notice period is 3 month then HR cut the call.
@codeAtoZ3 ай бұрын
We have to negotiate it wisely
@abhishekgupta-zd3zk2 ай бұрын
@@codeAtoZ I mention 3 month notice period i am not able to get call. could you please make video how to deal with this.
@raj0062 ай бұрын
@@codeAtoZcan you please make a video about this. It will be very helpful for people like us.
@sabyasachirajkumar27043 ай бұрын
Interview was ohk as compared to L1 technical round.