For more, you may check out kzbin.info/www/bejne/faWmg3ulhJiGjLM
@chaitu44187 жыл бұрын
The interviewer is just confusing.
@shaktimaan6933 жыл бұрын
Question 1 exception public class ParentExcp extends Exception{ String str1; ParentExcp(String str2) { str1=str2; } public String toString(){ return ("Parent Occurred: "+str1) ; } } public class ChildExp extends RuntimeException{ private String message; public ChildExp(String message) { this.message = message; } public ChildExp(Throwable cause, String message) { super(cause); this.message = message; } public String getMessage() { return message; } } public class A { String abc = "abcdef " ; public void m1() { try { // Throw an object of user defined exception throw new ParentExcp(abc); } catch (ParentExcp ex) { System.out.println("m1 Caught"); // System.out.println(ex.getMessage()); } } public void m2() { try { // Throw an object of user defined exception throw new ChildExp(abc); } catch (ChildExp ex) { System.out.println("m2 Caught"); System.out.println(ex.getMessage()); } } } public static void main(String args[]) { A a = new A() ; try { a.m1(); } catch(RuntimeException exp) { exp.getMessage() ; } } please tell me if I'm wrong
@somritachatterjee79059 жыл бұрын
I think he wants to ask what will happen if in detached state we modify the data and merge into in another session.?? Suppose Session sess1 = sf.openSession(); Customer c1 = (Customer)sess1.get(Customer.class, new Integer(100)); sess1.close(); // session 1 closed here so first level cached destroyed here //now if I have modified something here suppose c1.setPhone(9898989); //this Customer object is in detached state now and this obj get memory in RAM rather session cache Session sess2 = sf.openSession(); Customer c2 = (Customer)sess2.get(Customer.class, new Integer(100)); tx = sess2.beginTransaction(); sess2.merge(c1); the answer will be I think it will update inside c2 object c1 obj modification will be updated and saved into db....
@shivakumarsokke8 жыл бұрын
How rude is the interviewer...seriously so sad😔
@hireme38646 жыл бұрын
@14.14 , He was sarcastic about the answer for error in XML showing in IDE :), because I am not sure how this guy responded that the error shows in IDE. That was so funny!!..sorry.
@umeshpatnaik51748 жыл бұрын
Hi Dharmendra , when u update the id from 1 to 10 a new record will be inserted in the db . So the snapshot will be one more record in db .
@mrProgrammingGeek4 жыл бұрын
correct!
@manoranjansahoo85204 жыл бұрын
He is asking questions like a story.....
@kannadamelody137 жыл бұрын
when he is answering so many tricky questions obviously he will be confident in writing code, why is he asking so repeatedly as if he want it in writing.
@AmareshBonam6 жыл бұрын
Thing is no one is confident in the code written by themselves. Developers always code to meet the functional requirement first later they fix the code in better way, But always have to review the code by others. It doesn't matter that other person is less experienced than you but its always advisable and in some companies its mandatory to do
@sancharidhar50056 жыл бұрын
Mphasis interviewers are very rude and they do argue even when you tell them to check google.horrible experience in Mphasis interview twice🤐
@ranjansai93785 жыл бұрын
Do you think, saying an interviewer to check in google is a good practice.
@vikashsingh-ft9qg5 жыл бұрын
@@ranjansai9378 yes why not.he is not your papa.chutiye
@ArunraajSingh7 жыл бұрын
very helpful. is interviewer trying to catch him whether he is fake or genuine @16:14?
@interviewforyou71523 жыл бұрын
For more, you may check out kzbin.info/www/bejne/faWmg3ulhJiGjLM
@motivationHell3 жыл бұрын
for first question,he is catching base class exception only,why will this not compile? throwing base class and catching base class,so it should be fine,can someone explain
@syedwaseemahmed17496 жыл бұрын
id will not overridden. so new record is Inserted in db. first it will fire quire to database and then it will check that id,. If found then it will do alter operation or update operation.If not it will create new one
@AspirantNoteBooks8 жыл бұрын
Your ..Years of experience please ???
@jepaux4 жыл бұрын
This guy is a machine, very strong technically, all my respect !!, this is the kind of interview make difference between good and average developer, you may know all the technology in the world, this go back to the basic and make you suffer, I can feel the adrenaline from the candidate.
@vikashsingh-ft9qg5 жыл бұрын
hibernate ans 23 and error
@aafiyahhussain4 жыл бұрын
I think this kind of interview is testing technical skills as well of patience of the employee (stress interview)
@kirushnashirre67914 жыл бұрын
The interviewer sounds very rude, would upset any interviewee!
@joymahmood28226 жыл бұрын
okay~~~ okay~~~ may be that guy has hearing problem...! He could be a nice guy.. but OKAY is his not okay! :)
@hireme38646 жыл бұрын
Maybe you were confused with id question, you answered all immutable questions. ID is immutable and it again depends which method you are calling to persist save, update or saveorupdate etc. I think interviewer was not looking for st forward answer or he want you to talk through it and say a new row will be inserted.
@chaitu44187 жыл бұрын
As the state of the object is changed between the sessions, i mean including primary key, a new row will be created with the new ID.
@manoranjansahoo85204 жыл бұрын
50percent😀
@dnsvarun4 жыл бұрын
Nice questions...the interviewer is also a developer with good experience.
@interviewforyou71523 жыл бұрын
For more, you may check out kzbin.info/www/bejne/faWmg3ulhJiGjLM
@sagarmane94314 жыл бұрын
If you aware about 3 state(transient, persistent, detached) of hibernate you can give answer of this quation easyly.
@zoyanasim86623 жыл бұрын
Can you please help give java wale 's email id
@zoyanasim86623 жыл бұрын
@@sagarmane9431 thanks
@hashim25128 жыл бұрын
Did you got selected somewhere??
@SP-PAKS-CHAUDHARY8 жыл бұрын
So bad interview. He has only theoretical knowledge
@interviewforyou71523 жыл бұрын
For more, you may check out kzbin.info/www/bejne/faWmg3ulhJiGjLM
@yourskishore57906 жыл бұрын
interviewer doent know anything
@satvikvala4 жыл бұрын
lol this guy says "i didnt work but i have idea " for most of the questions !! :D
@interviewforyou71523 жыл бұрын
For more, you may check out kzbin.info/www/bejne/faWmg3ulhJiGjLM
@VinodKumar-no9xt9 жыл бұрын
Wow Dharmendra..Thanks lot for sharing this information.it will help more for who ever attending interviews..
@interviewforyou71523 жыл бұрын
For more, you may check out kzbin.info/www/bejne/faWmg3ulhJiGjLM