Thursday, 16 February 2012

60 TOP Hibernate Interview Questions and Answers for Freshers pdf

Hibernate Interview Questions and Answers for experienced pdf
1. What is Hibernate? 
2. What is ORM? 
3. What does an ORM solution comprises of? 
4. What are the different levels of ORM quality? 
5. What is a pure relational ORM? 
6. What is a meant by light object mapping? 
7. What is a meant by medium object mapping? 
8. What is meant by full object mapping? 
9. What are the benefits of ORM and Hibernate? 
10. How does hibernate code looks like? 
11. What is a hibernate xml mapping document and how does it look like? 
12. What are the benefits of HibernateTemplate? 
13. What the Core interfaces are of hibernate framework? 
14. What are Callback interfaces? 
15. What are Extension interfaces? 
16. What are the Extension interfaces that are there in hibernate? 
17. What are different environments to configure hibernate? 
18. What is the file extension you use for hibernate mapping file? 
19. What do you create a SessionFactory? 
20. What is meant by Method chaining? 
21. What does hibernate.properties file consist of? 
22. What should SessionFactory be placed so that it can be easily accessed? 
23. What are POJOs? 
24. What is object/relational mapping metadata? 
25. What is HQL? 
26. What are the different types of property and class mappings? 
27. What is Attribute Oriented Programming? 
28. What are the different methods of identifying an object? 
29. What are the different approaches to represent an inheritance hierarchy? 
30. What are managed associations and hibernate associations? 
31. Why do you need ORM tool like Hibernate?
32. What are the main advantages of ORM like hibernate?
33. What are the core interfaces of Hibernate framework? 
34. Explain how to configure Hibernate? 
35. What is a HibernateTemplate? 
36. What is Hibernate proxy?
37. What are Collection types in Hibernate?
38. What is lazy initialization in hibernate? 
39. What is lazy fetching in hibernate?
40. What is the difference between sorted and ordered collection in hibernate? 
41. Explain the advantages and disadvantages of detached objects? 
42. What is Hibernate Query Language (HQL)? 
43. Explain the general flow of Hibernate communication with RDBMS?. 
44. Explain the role of Session interface in Hibernate?
45. State the role of SessionFactory interface plays in Hibernate?
46. What is the difference between merge and update? 
47. What is the advantage of Hibernate over jdbc? 
48. Why hibernate is advantageous over Entity Beans & JDBC? 
49. Explain the main difference between Entity Beans and Hibernate? 
50. Explain the difference between hibernate and Spring?
51. How will you configure Hibernate?
52. What is a SessionFactory? Is it a thread-safe object?
53. What is a Session? Can you share a session object between different threads?
54. What are the benefits of detached objects?
55. What are the pros and cons of detached objects?
56. How does Hibernate distinguish between transient (i.e. newly instantiated) and detached objects?
57. What is the difference between the session.update() method and the session.lock() method?
58. How would you reatach detached objects to a session when the same object has already been loaded into the session?
59. What are the general considerations or best practices for defining your Hibernate persistent classes?
60.  What is the difference between the session.update() method and the session.lock() method?

No comments: