Serializable is marker interface it doesn't contain any methods,why do we need to override read and write objects methods in child class? Is it make sense
@@praveenreddy9454 That is called as custimezed serialization so by implementation of this methods we are taking the responsibility on our own shoulder at start of this cenima we need call defaultserilization
There is no direct way to prevent sub-class from serialization in java. One possible way by which a programmer can achieve this is by implementing the writeObject() and readObject() methods in the subclass and needs to throw NotSerializableException from these methods. These methods are executed during serialization and de-serialization, respectively. By overriding these methods, we are just implementing our custom serialization.
Default equals compares if objecs are same, they should share same memory. If we create a new key object and try to get a value we wont get any. So need to override equals as well.
Time complexity of get() method should always be O ( log(n) ). Even if hashcode() is defaulted to a constant value, then too, pure binary search will happen using just the equals() method. That will be a slower version of O ( log(n) ). But implementing hascode() will do a much faster version of O ( log(n) ). The search time will always be proportional to log(n), with hashcode() or without hashcode().
To get a O(logN) complexity for same hashcode, it means the list should be ordered, which means the value in hashmap should implement comparable, which is incorrect assumption. Value can be any object in hashmap and need not be a comparable object, Hence the list may not be orderer always. Hence O(N) complexity and not O(LogN).
Nice content. What about the consent from both sides if it is a real interview. If it is a mock interview from both sides it is fine. In many channels I have seen they do mock interview by interviewing his/her friend/colleagues.
Can you help me to how can I improve performance of my application. There is lot of association in single entity which takes lot time to fetch data. Thanks in advance.
Lol no one ask all this question I am continuously giving interview and they ask 70 percentage questions from data structures and few from java and one or two from springboot no one waste 1 hour in java
No bro..what I see is product based companies focus mainly on data structures and algorithms,service based companies is only interested in theory mostly !
Yes. Correct and just to add through kubernetes we can simply scale the replicas by providing the number of replicas in kubectl scale deployment --replicas command at runtime
You need to remove company name for such mock interview. Listen to what other person talks as you are interrupting him You are not letting him complete the answer
My CTC is 10lpa (6years experienced, currently working with microservices springBoot, kafka). I am holding an offer of 18(16 fixed +12%variable) . Do you think capgemini will offer me 20? Please clarify. How much can I expect
Any company will offer you on your current CTC. However you can tell them that you are reconsidering the offer of 20L and expecting more. If you prove in your interview you will get possibly more
@@rexsam3134 Update on my comment: I switched few months back and currently earning way more than what i was looking for! One thing is sure get multiple offers and negotiate well on counter offer to get the most!
Bro ,there would be bean conflict on interface ,for that we have to use @qualifier annotation for mentioning which class bean ,u have to use for that interface .
I interviewed for Capgemini this Saturday...got good feedback from interview but did not get any call or mail from hr regarding the result..do they give results the same day or should I wait till next week? Any idea anyone?
@@ramyaavilala5157 I got a mail 2 days back that I have cleared all rounds and they need some information to process my candidature further. After that I have not received any call or offer letter.
Now table turns n u r taking interview wow 👍👍but no one is asking interview like that, not sure what to do😔 theory practical n lots of knowledge still no luck !!! share some preparation site link or pdf of consolidate ques
Listen to real Interview, write questions, speak answers , record and practice. That's enough. All companies ask almost same questions just twisting it their way.
I would expect a lot more from someone who has "5-years of experience". Almost all the answers are being answered like a junior dev with like a year of experience. Please don't use this as reference for senior dev interview prep. This is mid-level at best.
1. This looks like a basic interview for a 1 to 2 year experienced developer 2. Answers are not given as per the question asked and you are interrupting the interviewee many times. 3. Few Questions asked are not clear on what you are asking.
Tried Answering few questions One of the Class loader is foreName() method of class Class Also to make child class non serializable we need to implement writeObject() and readObject() methods and make them through NotSerializable exception Normal steam is used to read the list of objects if the count of objects are less, but if you have millions of records to read reading from DB maybe then we should use Parallel streams About the diamond problem, actually when implementation class implements two interfaces having default methods, at the compile time only we get the error saying " we need to override atleast one method"
@@JavaTechies did you take premium services from Naukri? Just today I got to know that Naukri is offering premium services so just wanted to know if you availed the paid services
You can override readObject() & writeObject() methods in child class and throw NotSerializableException() to avoid serializing child class object.
Serializable is marker interface it doesn't contain any methods,why do we need to override read and write objects methods in child class? Is it make sense
@@praveenreddy9454
That is called as custimezed serialization so by implementation of this methods we are taking the responsibility on our own shoulder at start of this cenima we need call defaultserilization
@@sachinsarwadnya156 Durgasoft
@@talog4102 did not get you
I had a lot of confidence in my Java . After hearing the queries, i now know what I have to master.
Great
There is no direct way to prevent sub-class from serialization in java. One possible way by which a programmer can achieve this is by implementing the writeObject() and readObject() methods in the subclass and needs to throw NotSerializableException from these methods. These methods are executed during serialization and de-serialization, respectively. By overriding these methods, we are just implementing our custom serialization.
Collision happens in your 1st question if you don't override equals.
Default equals compares if objecs are same, they should share same memory. If we create a new key object and try to get a value we wont get any. So need to override equals as well.
Time complexity of get() method should always be O ( log(n) ).
Even if hashcode() is defaulted to a constant value, then too, pure binary search will happen using just the equals() method. That will be a slower version of O ( log(n) ).
But implementing hascode() will do a much faster version of O ( log(n) ).
The search time will always be proportional to log(n), with hashcode() or without hashcode().
To get a O(logN) complexity for same hashcode, it means the list should be ordered, which means the value in hashmap should implement comparable, which is incorrect assumption. Value can be any object in hashmap and need not be a comparable object, Hence the list may not be orderer always. Hence O(N) complexity and not O(LogN).
@@yogeshkumargupta265 it is stored in the form of a BST, so logn
Even BST is sorted 😊
This time interviewee is Interviewer👌👌
Dear ,love the way you are helping peoole 🙂
Thanks
Respect for the interviewer🙏🙏
Thanks 🙏
I think now you can help people by taking mock interview. Just a suggestion.
It will help a lot of people who are giving interviews
Thanks
@@JavaTechies You are legend.
Super madam
U r interview style is super
Capgemini is hiring like hell .. interested people can apply ..criteria 4 yrs minimum exp ..very good scope for java people ..
What is the average package for 2 years experienced java full stack developer?
There is nothing like average, depends on current CTC, notice period and company
Very bad question. 1st question. Searching for a same answer what interviewer knows.
Copyonwritearraylist is thread safe
why we need to override hashcode and equals methods when we used custom object as a key in hashmap?
Good Question and Answers
How you will implement security if it is a node / php based microservice?
Why was this candidate selected? He hardly seems competent.
Nice content. What about the consent from both sides if it is a real interview. If it is a mock interview from both sides it is fine. In many channels I have seen they do mock interview by interviewing his/her friend/colleagues.
ua-cam.com/video/GtCRHoO3SVQ/v-deo.html
you may check this as well
If the hashcode returned is same for all objects then the length of list or tree will increase
Can you help me to how can I improve performance of my application. There is lot of association in single entity which takes lot time to fetch data.
Thanks in advance.
Lol no one ask all this question I am continuously giving interview and they ask 70 percentage questions from data structures and few from java and one or two from springboot no one waste 1 hour in java
Can you please share few questions regarding data structure so that we can prepare accordingly
No bro..what I see is product based companies focus mainly on data structures and algorithms,service based companies is only interested in theory mostly !
Thank you
thanks for uploading valuable interview experience. Finally which company you are going to join?
One more thing bro ,we can use kubernetes or docker swarm for docker scaling
Yes. Correct and just to add through kubernetes we can simply scale the replicas by providing the number of replicas in kubectl scale deployment --replicas command at runtime
@@JavaTechies better to use HPS instead for truely dynamic scaling.
Where u r currently working mansi??
Please make a video on hibernate interview questions
Sure
are you serious!! this candidate cant't even speak properly and most of his answers were pathetic and still he got selected?
He not sound like five years experienced candidate
You need to remove company name for such mock interview. Listen to what other person talks as you are interrupting him
You are not letting him complete the answer
Yeah, everybody learns from mistakes only. Thanks for your feedback
Great content! Can we get proper answers for this questions please 🙏
If you will ask that question i can help you with proper answer in reply to your comment
2:09 hash collision
My CTC is 10lpa (6years experienced, currently working with microservices springBoot, kafka). I am holding an offer of 18(16 fixed +12%variable) . Do you think capgemini will offer me 20?
Please clarify. How much can I expect
22
Any company will offer you on your current CTC. However you can tell them that you are reconsidering the offer of 20L and expecting more. If you prove in your interview you will get possibly more
@@rexsam3134 Update on my comment: I switched few months back and currently earning way more than what i was looking for!
One thing is sure get multiple offers and negotiate well on counter offer to get the most!
@@NikhilKumar176 yes that's how the IT market works. But in some companies the appraisal sucks and after 1 year plus Max increment is 5 to 8 %
Bro ,there would be bean conflict on interface ,for that we have to use @qualifier annotation for mentioning which class bean ,u have to use for that interface .
Bt seriously,u guys are doing great work for us ,thnx for that
Thanks 👍
Yes correct . Now interviewee became such a pro that she ll be on the opposite side 😀
Thanks
Exactly, continuous Interviews are very effective in learning more
Yes correct 👍
I don't think he answered most questions properly...wasn't the best from his side ....was he selected ?
No, i don't think so.
I interviewed for Capgemini this Saturday...got good feedback from interview but did not get any call or mail from hr regarding the result..do they give results the same day or should I wait till next week? Any idea anyone?
If positive expect response by Monday otherwise they might not even reply.
@@JavaTechies Alright. Thanks!!
@@shaananshu9828 after how many days of hr have u got LOI??
@@ramyaavilala5157 I got a mail 2 days back that I have cleared all rounds and they need some information to process my candidature further. After that I have not received any call or offer letter.
@@shaananshu9828 ok
None of your interview videos helped me .. realtime interview is more practical rather than theoretical
Ok, it can be a case that it didn't help you, but these are realtime only.
The voice of this interviewer is same as one of the interviewer in one interviews of java techies … looks this is scripted !
How much Capgemini offers to 5years with Microservices experience?
Around 13lpa
Object class equals method
Now table turns n u r taking interview wow 👍👍but no one is asking interview like that, not sure what to do😔 theory practical n lots of knowledge still no luck !!! share some preparation site link or pdf of consolidate ques
Listen to real Interview, write questions, speak answers , record and practice. That's enough. All companies ask almost same questions just twisting it their way.
But you were in Altran or Cisco something right? Then how you are taking interview at Capgemini?
Altran was acquired by Capgemini recently!
Nice vedio
Thanks
That was difficult.
How long does Capgemini takes to release the offer letter? I interviewed almost 15 days back and submitted my documents a week ago?
How this dude got selected.
My interview got done yesterday and it took almost 1hr 10 mins to end ...what can I expect ?
Wait, it should be positive
@@JavaTechies It is Positive Bro...got my 💌
What was your salary expectation for 5years having microservice experience?
40-60% on current package, if holding and offer than 10-20% over that works perfect.
@@JavaTechies and whats for someone who has more than 10 years of experience......
I would expect a lot more from someone who has "5-years of experience". Almost all the answers are being answered like a junior dev with like a year of experience. Please don't use this as reference for senior dev interview prep. This is mid-level at best.
Agree
You have asked good questions. But i see many things he was not aware of. Was he selected?
Yes
@@JavaTechies ok. Anyway good job you uploaded so many interviews, its very helpful
Banda select nai hoga ye...need to study more. Questions were nice. Easy to Medium difficulty level. Nice interviewer.
Thanks 🙏
1. This looks like a basic interview for a 1 to 2 year experienced developer
2. Answers are not given as per the question asked and you are interrupting the interviewee many times.
3. Few Questions asked are not clear on what you are asking.
can someone explain the first question, it isnt clear.
Can you please ask the question Directly, i will answer here
how many technical rounds does capgemini take?
2 technical rounds
Tried Answering few questions
One of the Class loader is foreName() method of class Class
Also to make child class non serializable we need to implement writeObject() and readObject() methods and make them through NotSerializable exception
Normal steam is used to read the list of objects if the count of objects are less, but if you have millions of records to read reading from DB maybe then we should use Parallel streams
About the diamond problem, actually when implementation class implements two interfaces having default methods, at the compile time only we get the error saying
" we need to override atleast one method"
Just curious did you shortlist this guy for next round? Since now you have the authority to do so
Yes, I liked the responses
You joined Capgemini..?
No. My organization has been acquired by Capgemini
How to apply in capgemini?
Naukri is the best
@@JavaTechies did you take premium services from Naukri? Just today I got to know that Naukri is offering premium services so just wanted to know if you availed the paid services
can you do us a favour? whatever ques are there in the interview can you put that in your description of the video
this is mock interview ?
No, its realtime
@@JavaTechies thx