if you do :- System.out.println(session.persist(question)); Compile time error because session.persist() return void. Q: What is the difference between hibernate and jdbc ?A: There are so many 1) Hibernate is d
More than 50 questions on JSF-2 with detailed answers, go through them as a refresher on JSF framework. 8.Hibernate Interview Questions and Answers Hibernate is the best Java-based ORM tool in the market. It’s used a lot in most of the enterprise applications to overcome the shortcomings ...
" My friend Dion Stewart had a great idea for a weed-out question. No matter what frameworks the candidate shows on the resume, ask them what they disliked the most about the framework. (I have my top three list for each framework I've worked in... except NeXT's Enterprise Objects Fr...
These objects are stored in the ActionContext which uses ThreadLocal. My question is whether ActionContext object is also created for each request or its a single object/application. Thanks - JayJournalDev • January 29, 2014 Very nice. Good work keep it up. Can you include Hibernate ...
Question: What are your options to persist data in Spring Boot if you don’t want to use JPA/Hibernate? There are mainly two options you can use: Spring JDBCprovides a tool that makes it straightforward to work with JDBC:JdbcTemplateand its starter org.springframework.boot...
Question-57. Which function is used to move the stream pointer for the purpose of reading data from stream ?Answer- seekg()Question-58. Which function is used to move the stream pointer for the purpose of writing data from stream ?Answer- seekp()...
Enlisted below are the most commonly asked questions on Mocking Frameworks. Q #1) Why do we need mocking? Answer:There are a lot of use cases of mocking that aid in unit testing of the code under isolation and make the test highly repeatable and predictable. ...
Comments on “My favourite interview question”: I've played half a game of Monopoly in my life, and I was too drunk and sleepy at the time to pay much attention. If you asked me that question, you'd then have to spend much of the subsequent interview explaining how to play the game...
Sr.No.Question 1 What are new Java8 Features? 2 Difference between GET & POST METHODS? 3 Difference between forward() method & SendRedirect() method? 4 Difference between HashMap and HashTable? 5 Difference between HashSet and TreeSet? 6 What is meant by Collections in Java? 7 What is ...
14Encapsulation is a process of binding or wrapping the data and the codes that operates on the data into a single entity. This keeps the data safe from outside interface and misuse. One way to think about encapsulation is as a protective wrapper that prevents code and data from being arbit...