Submitted by heartin on Wed, 04/13/2016 - 20:54
We use various materials like books, internet resources etc. for our learning, for teaching and even for preparing notes. We will list those materials here for your reference. We might include only the very basic information required for our learning and training purposes here. You may refer to these additional materials for further reading and learning.
Submitted by heartin on Wed, 04/13/2016 - 09:00
In JPA, the EntityManager controls the lifecycle of the entities.
Different ORM vendors provide its own entity manager, which is usually a wrapper around the core API and thus supports the JPA programming interfaces, life cycles and query language.
You obtain the EntityManager from an entity manager factory. EntityManagerFactory has the same role as SessionFactory in Hibernate.
Submitted by heartin on Tue, 04/12/2016 - 21:18
A software framework is a reusable software platform that makes the life of developers easy by providing something commonly needed out of the box; developers can then use it or extend it.
For instance, Struts basically provides a MVC framework by providing a controller out of the box and an xml mechanism to configure MVC using xml files without hardcoding them in the code.
Submitted by heartin on Tue, 04/12/2016 - 20:17
These are some of the commonly asked questions to check if you know the differences between important concepts or APIs in Hibernate. This may contain beginner to advanced level questions.
Differentiate between entities and value types in Hibernate.
What is the difference between save() and persist() methods in Hibernate?
What is the difference between get and load methods in hibernate?
Submitted by heartin on Tue, 04/12/2016 - 19:30
Before working with hibernate in your code, you will need to configure Hibernate with information regarding your database such as host, port, credentials etc. You also need to create mappings that tell hibernate how to map the state of a Java entity to the columns of its corresponding table.
We can configure various hibernate features either through annotations or through xml files (hbm files). Preferred approach currently is annotations.
You can configure Hibernate mainly in three ways:
Submitted by heartin on Mon, 04/11/2016 - 22:52
This is a list of basic questions from Hibernate which you can use to check your understanding or even prepare for interviews. You may use the parent chapter, other chapters or hibernate or the forum to discuss more on these questions.
What is a framework?
What do you mean by CRUD?
What is Hibernate? What are the advantages of using Hibernate?
What is Java Persistence API (JPA)?
Submitted by admin on Fri, 04/08/2016 - 20:46
This page contains 500+ sample exam questions for OCA Java SE 7 Programmer I certification 1ZO-803 exam to test your knowledge on core Java essentials. Download them and start answering to see if you really know Java or only know about Java.
To avoid misuse of materials by automated softwares, we have encrypted the downloads with a password. Please check below the questions on how to get the password. Please also read the disclaimer given below before using the questions.
Submitted by admin on Mon, 04/04/2016 - 18:20
You need to create a program that takes any PDF ebook as an input , read its index (table of contents in the begenning) then and print it into an html file with bulleted points and proper indentation.
You may ask any doubt as a comment below. Don't make assumptions without asking.
The decision on the winner will be made by javajee.com team and will be final.
Submitted by heartin on Sun, 11/22/2015 - 20:58
LinkedHashMap extends HashMap and has a predictable iteration order.
Properties of LinkedHashMap
LinkedHashMap implementation maintains a doubly-linked list running through all of its entries.
The doubly linked list maintained by the LinkedHashMap implementation defines the iteration ordering.
By default, the order is the order in which keys were inserted into the map.
Submitted by heartin on Sun, 11/22/2015 - 18:22
Write a multi-threaded program to print data from four series of data in alternating order.
There are four series of data are as below:
Series 1: 0, 4, 8, 12, …
Series2: 1, 5, 9, 13, …
Series3: 2, 6, 10, 14, …