Interview Questions and Answers for 'Nagarro' - 3 question(s) found - Order By Newest Very frequently asked if being interviewed for hibernate. Frequently asked in Tata Consultancy (TCS) and Overstock.com
Q1. Difference between load and get ? Hibernate
Admin email@example.com Ans. If id doesnt exist in the DB load throws an exception whereas get returns null in that case.get makes the call to DB immediately whereas load makes the call to proxy. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve hibernate Overstock.com Nagarro Anthem Tata Consultancy (TCS) Nucleus Software Exports CDK Global Dell Capgemini Persistent Systems HCL Technologies Nagarro Sears CDK Global Oracle Nucleus Software Exports CACI International basic   frequent 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
Q2. What is a self Join and give an example of a self Join ?
What is self Join and What is it's purpose ? Database 2016-06-30 20:13:35 Ans. When a Table Join itself , it's a Self Join. For example - we like to know the pair of department names where first dept has lesser employees than the later.
Select D1.name , D2.name from Dept D1, Dept D2 where D1.employee_count < D2.employee_count Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve sql joins self join self-join Pair of employee names with first having lesser salary than later Pair of department names where first dept has lesser employees than the later Accenture West Monroe Partners Oracle eBay Impetus Technologies Bank of America Fannie Mae Wize Commerce Kleward Consulting Pyramid Consulting Interra Information Technologies Trigent Software Xtreme Media IGATE Nagarro Six Sigma Nityo Infotech Fujitsu BlazeClan Twist Bioscience Invoyent Cognizant (CTS) i2c Capgemini Blazeclan basic   frequent Related Questions What are Inner , Outer , Left and Right Joins in SQL ? What is JDBC? Describe the steps needed to execute a SQL query using JDBC. Difference between Inner and Outer Join ? What is a Cursor ? What are temp tables ? Does SQL allow null values ? Can we use it within Where clause ? Write an SQL to find all records having all upper case alphanumeric characters in a field ? Write an SQL to find all records having all numeric characters in a field ? Do you know of any DB statement that can be used if we would like to insert multiple rows into a table ?
Q3. What is serialVersionUID ? Core Java 2016-12-20 17:26:52 Ans. Everytime an object is serialized the java serialization mechanism automatically computes a hash value by passing the meta information for the class. This id is used during deserialization to verify that the sender and receiver of a serialized object have loaded classes for that object that are compatible with respect to serialization Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve serialVersionUID serialization Tieto Priceline.com Nagarro expert   rare Related Questions Can we declare static variables as transient ? Which elements of a class are ignored during serialization ? Can we serialize static variables ? What one should take care of, while serializing the object? What is Serialization ? Why do we need it ? What is the use of Transient Keyword ? Difference between Serialization and Deserialization ? What is an Externalizable interface ? Difference between serializable and externalizable interface ? What are transient variables in java?