Hibernate - Interview Questions and Answers for 'Cognizant (cts)' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com
Share

Search Interview Questions


 2784 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Hibernate - Interview Questions and Answers for 'Cognizant (cts)' - 3 question(s) found - Order By Newest

Frequently asked question in companies using hibernate.
  Q1. Difference between first level and second level cache in hibernate ?Hibernate
Admin
info@buggybread.com
Ans. 1. First level cache is enabled by default whereas Second level cache needs to be enabled explicitly.

2. First level Cache came with Hibernate 1.0 whereas Second level cache came with Hibernate 3.0.

3. First level Cache is Session specific whereas Second level cache is shared by sessions that is why First level cache is considered local and second level cache is considered global.

 Help us improve. Please let us know the company, where you were asked this question :   


   Like      Discuss      Correct / Improve     hibernate   orm   hibernate cache   architecture   technical lead     EFI  Geometric  QuinStreet  Cognizant (CTS)  ZS Associates  Walt Disney  Virtusa  JP Morgan  Awin  UrbanPro  Thomson Reuters  Azuga  HCL Technologies  Infosys  GoldenSource  Evoke Technologies  Intercontinental Exchange      Intermediate        frequent


Related Questions

  How to configure second level cache in Hibernate ?
  What are some differences between Spring caching and Hibernate caching?
  What are the the methods to clear cache in Hibernate ?
  What are different types of second level cache ?
  Can we disable first level cache ? What should one do if we don't want an object to be cached ?
 Have you ever faced any problem due to caching?
 Can you please provide an implementation of application level cache ?
 Implement an LRU Cache ?
 How can we remove a JSP page from getting cached ?


 Q2. What are the contents of Hibernate configuration file ( hibernate.cfg.xml ) ?Hibernate
Admin
info@buggybread.com
Ans. HBM Files ( Mapping )
DB Connection ( DB Connection String , User Name , Password , Pool Size )
SQL Dialect ( SQL variant to be generated )
Show SQL ( Show / No show SQL on Console )
Auto Commit ( True / False )

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     hibernate   configuration   barclays     Mphasis  Mccoy Global Links  Availity  Infosys  GlobalLogic  Cognizant (CTS)  Overstock.com  Erricson  Erricson India  HCL Technologies  Tata Consultancy (TCS)


Related Questions

  What is the purpose of dialect configured in Hibernate configuration file ?
  What entries we make in the hibernate config file if we are not using hbm files but Annotations ?
  What is the use of hbm2ddl Configuration in Hibernate ?
 If you are given choice to avoid LazyInitializationException using any of the following measures, which are the ones you will choose and why ?

1. Set lazy=false in the hibernate config file.
2. Set @Basic(fetch=FetchType.EAGER) at the mapping.
3. Make sure that we are accessing the dependent objects before closing the session.
4. Force initialization using Hibernate.initialize


 Q3. What is the use of second level cache in Hibernate ?Hibernate2018-02-06 20:20:18

 This question was recently asked at 'Cognizant (CTS)'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve          Cognizant (CTS)


Related Questions

  What is Lazy Initialization in Hibernate ?
  What are the ways to avoid LazyInitializationException ?
  Difference between first level and second level cache in hibernate ?
  How to configure second level cache in Hibernate ?
  What are the contents of Hibernate configuration file ( hibernate.cfg.xml ) ?
  Which annotations are used in Hibernate ?
  What things you would care about to improve the performance of Application if its identified that its DB communication that needs to be improved ?
  What are the advantages of Hibernate ?
  What is the purpose of dialect configured in Hibernate configuration file ?
  Please specify in what sequence the objects of following classes will be created ?

Session , SessionFactory, Query , Configuration




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked:
         

X Close this

X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: