Even very good companies taking java interviews, dont ask such good, evenly distributed , simple yet logical questions. For Accenture, the interviewer is very skilled in taking interviews. She is bringing out the best in the interviewee. Thank you for your efforts AG !
Sonetimes jvm will not distroy after declaring the reference variable as a null bcz when ur heap memory enough available is then garbage collector not be destroyed and not only null value eligable for garbage collector cycling problem and reassign the reference that time also ur object eligible for garbage collector 👍
7:00 string obj create extra obj and occupy memory because string immutable. But string builder is mutable and it will reflect the change in same obj so main advantage of this to save memory.
3:47 String literal is store in string constant pool and string object which is created with new keyword stores heap area and string constant pool both.
For the last question the answer would be URI versioning, Versioning using headers - Accept/Request Header. URI versioning is most common in which we create different api for new schema. So that old api's remain unaffected.
password always stores in char cuz when store in String then it will create 2 object one in heap and other in sop and no ref variable is pointing that object so hacker can hack that
@@AryanRaj-dk6vv No they were hiring for different technology. Mainframe, i am a mainframe developer -i m trying to change my technology from mainframe to java
Trying buddy. I wanted my company to allocate projects as per my interest , i know java and spring . I wanted them to give a chance of interview, they are so pathetic. So changing company
@@noogler123 in short: if you just print char arrays, it wont print the characters (unlike String does), but it will print the memory location (which doesnt help to find out the password).
so the answer is to use the char array for storing password because string is immutable...whenver u create any object it will be allocated in heap as well as string constant pool. jvm garbage collector can delete the unused object in heap but not in scp and when u store the pwd in char and string format. when u print the the object...it will print the address location in char array but will print the value in string format. thats why char array is preferable.
Static use for only one copy shareable for all the classes like singleton classes and real time use case Amazon' give u the offering that is common for all the customer and ur bank account names
@@momentsmemories-dp i already elebroate but anyway if u are not able to understand then let's try one more time first u have clarity why we use static variable static method then static block or nested static then u know when the static context loaded in a jvm later on u know why we creating singleton classes taking the help of static block or static variable then u have got the idea about what i have mentioned in the comments box
In real-time application when u are developing e commerce based application and ur application running in production as live same example for u can take any name Myntra or flipkart so now day's dipwali time ur application are offering the discount to the customers that's discount eligible for certain time period with all the customer for specific products so we are taking the help of static we can declare offer as a price and that's price load as a class loading time and it will create single instance that use common for all the products what we are offering in e commerce application and other reasons to avoiding the misusing the JVM memory and ur application performance will faster unless creating multiple instances for each product better to create one time that is shearble for ur all products
Can someone answer correctly how to handle exception when method1 calling method 2 and method 3 and any failure in method 3 how do you handle and display to client ?
this is the concept of exception propagation. For an example - you are consuming the response and transforming the object into your model having various child classes. Now, you got some missing data on child entity but that is required. So on saving the whole object, you will get exception on child class but to be displayed on parent entity. Such type of scenarios are handled by exception propagation.
It says core java interview and she is asking all kindof internal workings, i am a backend developer few questions and scenarios I don't even know that 😂😂😂
Even very good companies taking java interviews, dont ask such good, evenly distributed , simple yet logical questions. For Accenture, the interviewer is very skilled in taking interviews. She is bringing out the best in the interviewee. Thank you for your efforts AG !
Sonetimes jvm will not distroy after declaring the reference variable as a null bcz when ur heap memory enough available is then garbage collector not be destroyed and not only null value eligable for garbage collector cycling problem and reassign the reference that time also ur object eligible for garbage collector 👍
7:00 string obj create extra obj and occupy memory because string immutable.
But string builder is mutable and it will reflect the change in same obj so main advantage of this to save memory.
3:47 String literal is store in string constant pool and
string object which is created with new keyword stores heap area and string constant pool both.
God, please assign me an interviewer like this for my upcoming interviews and for future interviews too!
She is helping a lot and giving him lots of hints 😃
🤣🤣👍🏻👍🏻
Because she want to hirre him..🤣🤣
Requirement hogi bro. Aise hi hota.. my friend was hired on 14 lac package. Usse to ek bhi legit question nahi kia. Class 12 vale question kie.
Just for clarification: "decrypted" passwords never go to the string pool. Only literals go to the string pool.
So where it will go sir ?
Hahahahaha
S it will go to the heap memory only
Seems 3+ years interview, Tested in design patterns concepts also
I think, we have to give this exam within 3-4 months of joining Accenture.
For the last question the answer would be URI versioning, Versioning using headers - Accept/Request Header. URI versioning is most common in which we create different api for new schema. So that old api's remain unaffected.
JVM will create new String object for every manipulation as it is immutable
password always stores in char cuz when store in String then it will create 2 object one in heap and other in sop and no ref variable is pointing that object so hacker can hack that
But if we write like this String s = "Password" then only one object is creates in scp only and s will be pointing to that
For more, you may check out th-cam.com/video/GtCRHoO3SVQ/w-d-xo.html
2:23 charArray is the best way to store password
Better store password on char[] instead of Strings.
Thats what she wanted to hear.
byte[] also good
Correct !!
What is the reason that we should store it in char array
@@sau5040 because String is stored in string pool and password will be stored in the pool.
Even i attended for one of accenture interview ..and guy was really sweet...though the whole process took lot of time
Was the questions almost same or different from the current vdo?
@@AryanRaj-dk6vv No they were hiring for different technology.
Mainframe, i am a mainframe developer
-i m trying to change my technology from mainframe to java
For more, you may check out th-cam.com/video/GtCRHoO3SVQ/w-d-xo.html
Trying buddy.
I wanted my company to allocate projects as per my interest , i know java and spring .
I wanted them to give a chance of interview, they are so pathetic.
So changing company
@@shetty302 shetre enchina
Marker interface are used to pass certain information to the JVM during compile time such as the class is serializable or cloneable!!
Use character array for savings password. Its not easily readable even if it is logged.
Can you please elaborate more.
I understood your approach, but how it is safe. I wants to check practically.
@@noogler123 in short: if you just print char arrays, it wont print the characters (unlike String does), but it will print the memory location (which doesnt help to find out the password).
so the answer is to use the char array for storing password because string is immutable...whenver u create any object it will be allocated in heap as well as string constant pool. jvm garbage collector can delete the unused object in heap but not in scp and when u store the pwd in char and string format. when u print the the object...it will print the address location in char array but will print the value in string format. thats why char array is preferable.
Interviewer is very blommered person😎😎
@@ironcommander01 😁😁
Blommered means very talented person
This interview is for java devoloper so it is fine to ask
@@gdscclubpaavai1876 can u ping me??
@@bishalkumar3435 😁😁😁
It was mostly based on your current project.
@Kola Praveen "HK Product"😉🤟
questions are very good very much help full
Factory pattern help us to achieve loose coupling same as dependency injection or IOC
I should used char data type for password
Being a fresher I will be able answer 65% answer . Is that a good level as a fresher ?
Thanks for sharing your experience
He loves throws so much that he can't tell try catch 😂
If HK product was there, he will rock the show 🎉
yesss
I'm also hk product 👍
@@mangeshshelke1846 i also , present learning batch
Yeah I'm also.. I'm from 6pm batch
What is HK bro
20:31 it will help us in dependency injection .
For decrypted password always go for byteArray than string for the reasons mentioned by her
why byteArray bro?
It is not safe to store in a string, possible a stringbuffer data structure or stringbuilder
No, its always recommended to use char[] for storing the passwords.
I think this is at least for 3 years of experience.
That's what ...i am a fresher ..going above my head
Experience range???
I hope she is expecting Array for password storing..
password always stores in char
@@usamaansari7903 yes I mean char array
Use Properties class for saving password
I need this girl to interview me.....🤔🙅☘️🥗
From 2:23 question, what's the correct answer for it ?
Char []
Thanks for helping with these type of content
Static use for only one copy shareable for all the classes like singleton classes and real time use case Amazon' give u the offering that is common for all the customer and ur bank account names
Could u please elaborate use Case
@@momentsmemories-dp i already elebroate but anyway if u are not able to understand then let's try one more time first u have clarity why we use static variable static method then static block or nested static then u know when the static context loaded in a jvm later on u know why we creating singleton classes taking the help of static block or static variable then u have got the idea about what i have mentioned in the comments box
In real-time application when u are developing e commerce based application and ur application running in production as live same example for u can take any name Myntra or flipkart so now day's dipwali time ur application are offering the discount to the customers that's discount eligible for certain time period with all the customer for specific products so we are taking the help of static we can declare offer as a price and that's price load as a class loading time and it will create single instance that use common for all the products what we are offering in e commerce application and other reasons to avoiding the misusing the JVM memory and ur application performance will faster unless creating multiple instances for each product better to create one time that is shearble for ur all products
@@pratapjavasingh3239 Thanks for clear explanation.
@@momentsmemories-dp ohh Thanks God now u got the clarity ..😊....👍
very good questions
Can someone answer correctly how to handle exception when method1 calling method 2 and method 3 and any failure in method 3 how do you handle and display to client ?
this is the concept of exception propagation. For an example - you are consuming the response and transforming the object into your model having various child classes. Now, you got some missing data on child entity but that is required. So on saving the whole object, you will get exception on child class but to be displayed on parent entity. Such type of scenarios are handled by exception propagation.
Type, try and catch in every methods
Sir were you selected after this interview?
It says core java interview and she is asking all kindof internal workings, i am a backend developer few questions and scenarios I don't even know that 😂😂😂
Were you selected? What is your years of experience?
Seems fresher.
seems 3+
in Accenture how many days will get first technical interview will be cleared or not
Hi , did u mention log4j in ur resume?
Thanks for posting
Did u know java??
Empty vessels makes noise
@@shanthinir3213 🙄🙄🙄🙄🙄
Can u help me
This interview for freshers or for experience one
How much experience does that person have ?
Generally asking to attend interviews.....
2 years may be
How much year of exp you have
Wow 👏
When we decrypt it will be of byte array right?
You need to store in char array, which will store the values in blank . So the right answer is char[]
@@RAJU9622 can you please give more info
Which video recorder you used?
Try Obs studio
bhai experience bta do apna plz
Is this for freshers ?
No, it is for experienced Java dev
@@tusharchouhan1858 Are you sure these won't be asked for freshers ?
@@gagan8281 Yes Bro.
Was this a freshers interview?
Experience
Bro I gave Accenture interview as a fresher and the interviewer didn't even touch the technical part. ONLY PROJECT AND HR
@@tusharchouhan1858 is that true? Because I have a final interview tommorow, I'm a fresher applying for java eng ,TIA
@@faialvarez3813, It really depends on the interviewer that you'll get. but I think you're done with your interview today. How was it?
How much are they offering you?
Is these questions are for Freshers
No,this is not for freshers
No chance, Design pattern question will ask atlesst 3+ years
That’s fine? Ouch!
Interviewer 😂👌
Got selected???
How many years you have experience?
@@raghubirsingh4286 nearly 2 years of experience... But whatever I work on isn't useful anywhere... Trying to learn on my own
questions are very much useful but answer s🤭
She is so cute......
Got 13:00 😅
I want her number...she is god(angel)...
is this a fresher interview?