Java 8 Stream API and String | Capgemini Mock L1 Coding Interview
Vložit
- čas přidán 1. 05. 2022
- Capgemini Java Coding Round. The candidate has 3.8 years of experience and he got selected in the interview. In the interview, the question was about Java streams API and String.
Question 1:
There is a list of employees and the candidate needs to increase the salary of the employees by 10% whose age is greater than 25 years.
Question 2:
String comparison using literals and new String constructor.
Freshers Java Interview Questions
Experienced Java Interview Questions
Products I use:
Green Soul Vision Chair: amzn.to/3TcWYLe
Microphone: amzn.to/46GGjTb
SSD: amzn.to/49ZYM05
Mobile: amzn.to/4a5Yp3W
I am so happy to have found your channel! This video was exactly what I needed today. You have a wonderful, calming way about your teaching. Thank you for taking the time to make these videos..........
Good one. I work for a German defence project and got opportunity to sharpen my Java skills.
you saved me a lot of time looking for a working crack
Easy peasy, it should be for a fresher.
Confidence to max💯
NYC keep uploading more vedios on Java 8 interview coding questions
Perfect💯
Excellent
I am 3 months experience, I dono about streams, but last parts were easy enuf
Now you are six months, have you handled streams? They are such a strong tool.
Piece of cake, even a fresher could have cleared it
No i can't 🤧, btw what is this map which he use ?
@@noneofyourbusiness919 this map is different. It's just for mapping
@@noneofyourbusiness919 This is not Map , this is Stream.map().
Thank you so much
Very nice video
Useful video
First of all I would prefer not violate OCP.
We have to add interface or abstract class Employee and declare method increaseSalary(). Than we have to put increasing salary logic there. With that we can iterate over list of employees and call increaseSalary() without any logic in map lambda that actually violates OCP.
Second comment is not to use anythng except BigInteger for money. You can see in current solution have errors are accumulated.
Excellent bro confidence level 😉
Thanks Bro!!! 🙂
@@cloudtech5260 easy question tha
Great to see candidate is so excited for Capgemini..my favourite company 👍
Quite easy
This makes sense in sql. In java he could have asked some logical question.
Strings questions are very essy even fresher can answer
Thanks Sai for the review. 👍
That is like fresher interview
in real interviews.. they will ask take linked list keep in mirror and cut one node in it .. find out the shortest path between two nodes .. lol :) .. it was terribles . For me they asked to me write satellite code
Bro you are not into capgemini interview 😂 If you are into product based/startup they will screw with DS ALGO
@@rohithkoteval1785 Exactly
🥶🥶
Use filter 7:10 instead of if condition inside map
But really very helpful
I could have used filter() method to filter the Age and then Map() to do the calculations that would be more Java 8
That would make the collected list have only employees with age > 25 but the desired output is to have all employees but increment salary for particular employees.
@@kavingct in that case I can use filter inside map I guess
No need of filter. Simplicity is the key
@@kavingct that is because he collected the stream into another list, so he didn't really increase the salaries he created new employees .
@@thatsfreaky9603 the simplest way would be to use for each, also this way you would actually increase the salaries of existing employees not create another list of employees
Take one and more interview in hindi
why did not you use filter first for age then map instead of if condition
Can you please tell me for 2 years of experienced candidates what are the selection rounds generally happens from the Scratch after application shortlisting ....
2 Technical Rounds followed by 1 HR Discussion
@@cloudtech5260 is there any written test or any coding test?
@@sunetramukherjee1805 it quite be possible but not for every time.
Listening
how many years of experience this guy have ? or was he fresher?
btw wonderful video, will surly help!!
I have no experience but these questions you can ask me in the sleep as well 😜
So that you will keep on sleeping right
How would you get clear knowledge about java ..how could u learn and crack coding rounds
Make practice
Learn small concepts and write programs around it. Best of luck 👍
So easy question kaun poochta hai Bhai
Are there going to be any interview for fresher capg analyst role based on ADAPT training before aloting to project?
Yes there will be one interview before project allocation.
That was easy. What is the salary PKG? I guess it will be less.
It's a mock interview. These guys talk between friends. Create a audio and upload it. It's better that they just upload the questions and discuss in short if they know the answers. Others can google for the answers
They are in the same room, you can hear double voices 😂
What is ur current package brother for this interview?
The student who gave this interview got 9.7L.
It's kind of very easy round it should be for freshers.
Thanks Abhinav, the fresher who knows streams are hired first. 👍👍
What no is 7:11 1.10?
@Makemythings Byme Telugu
👉I got Loi in April 10th...
I accepted it......
👉 April 27 th i got DOJ on May 5th,i send IRF, certificate.....
BUT
There send a mail on
👉 April 29th that ur DOJ was postponed........
I upload all my documents clearly...
When will I get another DOJ Mail ❓
Any requestion will happened ❓
Don't worry, they will send just be in contact with HR
Seriously 3.5 y?
Cheers for me then 😁 solved this questions easily having 0 y of exp
I think interviewer is also fresher..
He could have used filter and then map in first question. One liner code.
Yes. I too agree with you. Even, performance wise, filter and then map way would increase performance i believe.
Thanks for the thoughts guys. You can ho for filter when you want only incremented values in the output, if the requirement is to get all values in the output then you can go for map with condition. Happy learning 👍
@@cloudtech5260 But, the requirement here is, we need to apply the increment only for the age > 28 right. So, filter the input to get the values with that criteria and apply the increment logic.
We are talking about input filtering, not the output filtering.
@@gyvsr when you filter a stream the output list has only the filtered entries which is not the desired output in this scenario.
Screen not clear visible bro....
Can you suggest projects to add in resume for Java developer role, Please?
Highest Qualification bro, pls?
@@cloudtech5260 My qualifications is MCA
@@cloudtech5260 any suggestion for non b tech, self taught developers? 🙂🙂
Yes help us in projects please bro
@@abhishekbhawankar2971 have you completed your mca?
That was helpful! was it the position for 1-3 years?
Thanks Rohan. Yes it was for 3 years.
Solution provided for employee is not an ideal solution.
1. Filter should be used for the age comparison
2. And new employee object should have been created for the updated salary. Since Immutability should be maintained
2. Is wrong reason we are raising the salary of same employee.
Creating new employee with same details results duplicacy and also in real time scenario the Employee ID will be disturbed which might not be good if this employee having dependencies.
Rest yes point 1 is valid.
How much they offered
9.7 lpa
Next level 2 interview link?
We don't have questions for 2nd round yet. We will try to find out the questions from the 2nd round.
humne bhh MCA kiya tha batao ajj berojgar hai 😅
Kha se bhaiya?
Mca nhi krni chahiye kya?
Go for skills development
Learn any programming language and you will get the job. Best of luck 👍
@@SAM-uy2ek NAAC "A" graded University thi GLA university. After all there is a huge difference between theory and practical. Ajj college ki conditions ye h bas placement pe focus rhta h firh bacha kuch sikh paye ya na paaye
the same interviewer and the same candidate
Can u give hint that how much pkg he will get
He got 9.7 LPA
@@cloudtech5260 that's too less ,
For person who is having 2+ yr of experience
man so much boilerplate java is messed up actually
I agree. 🙂
In reality Tier-2 or Tier-3 companies never evaluate coding skills, they just checked one's fundamental and conceptual knowledge on the skillet mentioned in cv.
Tier-1 companies like MAANG, Oracle, Wallmart etc have their own dedicated round of coding in which they are looking for a person who is an expert in DSA/Algo.
Do they allow editor like eclipse..
Yes. Eclipse or intellij are allowed. Some project interviews don't allow editors but still you can use online editors and solve the problem.
Are you fresher or u have experience?
Experienced!!
Obviously both of u sir dont have any coding experience.
kya bro itna easy bhi Interview hota hai kya? hamare mei toh tree graph wale problem puchhte hai.....😢😢😢😢
haha. which company bro?
@@cloudtech5260 juspay, Amazon, NCS etc
Thanks. Send me the question if you have it. Solve karte hain videos me 🙂
@@cloudtech5260 send me your mail I'll send you the questions
jobreadytrainings22@gmail.com
What will be the next round after this ,could you pls tell ..
Next round will be L2, where a senior developer will conduct the interview. He will assess the the understanding about java, spring boot and microservices along with a bit of design pattern knowledge.
@@cloudtech5260 no coding? If no coding I am strong in understanding depth of technical stuff, am bad at logic
this looks like showing off 🤣
Achha fake interview tha
Brother,
👉I got Loi in April 10th...
I accepted it......
👉 April 27 th i got DOJ on May 5th
BUT
There send a mail on
👉 April 29th that ur DOJ was postponed........
I upload all my documents clearly...
When will I get another DOJ Mail ❓
Any requestion will happened ❓
Who many days it required to send another DOJ Mail ❓❓❓❓
If they sent that the DOJ is postponed, then you will definitely get the new DOJ.
I would suggest, please send an email to fresherhiring.in@capgemini.com.
@@cloudtech5260 okay sir
Tq