MENU

Fun & Interesting

Java mock interview | Hibernate / JPA | java interview questions and answers for experienced 5 years

Selenium Express 121,748 4 years ago
Video Not Working? Fix It Now

This Live java mock interview contains a variety ofJava interview questions from Java, JPA, Hibernate, and Spring. In this specific video we will discuss few most Asked interview questions in hibernate and in the part - 2 of this interview we will discuss more of coding challenges and Spring and Microservices questions. Candidate Info : Name: Yash Bhatia Profile: Java Developer Years Of Experience: 4+ Work Location: Delhi, India Keyskills: Java, Microservices, Spring, Restful Webservices, Hibernate, JPA, Spring Data Watch Previous Mock (Discussion on Spring / Microservices / Java / Restful Webservices) https://youtu.be/yX2w-Sof95s Timestamp : 00:00:00- Introduction 00:03:46 - Q1. Difference between Hibernate and Jdbc (hibernate vs JDBC) 00:06:53 - Q2. Session VS Session factory (Differences) 00:09:57 - Q3. Can you create multiple session factory objects? Justify your answer! 00:11:09 - Q4. What is the equivalent object of the session in JPA? 00:13:04 - Q5. What is persistence context in JPA / Hibernate? 00:14:55 - Q6. Explain the first level of caching in Hibernate. 00:20:00 - Q7. Justify the difference between get() and load() in Hibernate. 00:24:00 - Q8. get method Vs load method [Coding Challenge] 00:32:17 - Q9. Explain the transient state in JPA/ Hibernate. 00:37:17 - Q10. What is a detached state in hibernate? 00:37:50 - Q11. How to detach an entity object from the persistence state without closing the session? 00:41:58 - Q12. Coding challenge on Hibernate states. 00:46:50 - Q13 - Why do we need a connection pool? 00:52:56 - Q14 - How will you implement connection pooling in your project? 00:57:18 - Q15- What are the fetch types available in hibernate? Explain how will you use it in real-time. 01:01:18 - Q16 - Eagar Vs Lazy code practice 01:12:29 - Q17 - What is a @Generated value annotation? Explain the different generation types available in JPA / hibernate. 01:19:11 - Q18 - Code Practice [Auto Vs Identity Vs Table generation type] 01:27:29 - Q19 - Explain the advantages of Named queries in hibernate/JPA? 01:29:20 - Q20 - What is Criteria API in Hiberante? Explain the advantages. 01:33:19 - @NamedQuery/@NamedQueries quick KT 01:41:03 - Criteria API In Hibernate quick KT[Query/Restrictions /Pagination/Filter demo] Watch another Java Live Mock [spring/rest/java/microservices https://youtu.be/yX2w-Sof95s] popular java interview questions : Practice Resources Why HashMap Keys are immutable? https://youtu.be/Y1uGGTrBYKw How to protect Your Immutable classes ? https://youtu.be/I-HMrM4pskQ Comparable Vs Comparator (Learn in depth) https://www.youtube.com/watch?v=tWoVU3ZNZGk&list=PL3NrzZBjk6m_hMXyO_QbI9Z4w10Bd8gt9 What will happen if you will use @service over a DAO? Learn in-depth :- https://youtu.be/CUQWZHjuq-w @component vs @service vs @repository https://youtu.be/G39Z3J_6lKY Explain spring Bean Lifecycle https://youtu.be/hUYGGqoXEPc Java Interview / Question and Answer series https://youtu.be/Y1uGGTrBYKw How does Basic Authentication work in Rest API? https://youtu.be/L-pfk5wkNbI How to create custom validators in spring? https://youtu.be/aNpJGvFR5uI How hashmap works internally? https://www.youtube.com/watch?v=CojCE-ojdGY&list=PL3NrzZBjk6m9do1opOKwx_C7d2HRJzpwG List vs Set Vs Vector (in-depth collection interview questions discussion) https://youtu.be/GEzDJg8mlzk Collection coding interview questions java Print duplicate occurrences of string in java https://www.youtube.com/watch?v=2PlWhcLi1JQ&t=107s Explain the Signleton design pattern. How spring's singleton scope is different then GOF signleton? (Spring bean scope) https://youtu.be/xpKbs8FHUi4 Give me a code walkthrough on the spring security internal workflow https://youtu.be/u8fAxGCrqPA checkout my free courses on www.seleniumexpress.com Category : Hibernate / JPA hibernate interview questions Java interview questions and answers for experienced java interview questions and answers for experienced 5 years java interview questions coding java coding interview questions and answers Useful playlist : spring core https://www.youtube.com/watch?v=r2Q0Jzl2qMQ&list=PL3NrzZBjk6m-nYX072dSaGfyCJ59Q5TEi spring mvc https://www.youtube.com/watch?v=zCHrZdJODg4&list=PL3NrzZBjk6m-OSeL3DRMD_ISa0u-9c1l1 spring mvc intermediate https://www.youtube.com/watch?v=40YaLHbrwrY&list=PL3NrzZBjk6m_2jw8sC0BkEwSPFHxgQDWr Spring JDBC https://www.youtube.com/watch?v=5j_vh1b9dV8&list=PL3NrzZBjk6m-rYTKze-5Y5RvU8eykal4j spring live project https://www.youtube.com/watch?v=m_b_FwDjAXM&list=PL3NrzZBjk6m-9CVPueDLLermojwtfuW_f For more free/paid courses visit https://www.seleniumexpress.com Email : [email protected] you can ping me on my Facebook page https://www.facebook.com/seleniumexpress Make sure to join my private Facebook page (Ask me here) “SeleniumExpress - Support" https://www.facebook.com/groups/187000222361579/ Follow me on Insta https://www.instagram.com/selenium_express/

Comment