Java
-
Algorithms
What is an algorithm? An algorithm is a way of solving well specified computational problems. – Cormen et al. A finite set of rules that give a sequence of operations for solving a…
-
Java Enterprise Edition
Java EE is an umbrella specification that contains a set of interoperable API specifications that support the development of enterprise systems with Java. Java EE provides higher-level abstractions for common system concerns. Goals…
-
Java Servlet API
The Servlet API is an important feature in building Java web applications. Servlets run in a servlet container which is a web or application server that provides network services for receiving requests and…
-
Java Persistence API (JPA) ~ Part 2 ~ Entity Manager
The entity manager API is used to create and remove entity instances, find entities by their primary key and to query entities. JPA defines a persistence unit in the persistence.xml file which caters…
-
Java Persistence API (JPA) ~ Part 1 ~ The basics
What is persistence? Applications are designed to store and manipulate data in a remote datasource/database so that it can be retrieved, processed, transformed or analyzed at a later time. Persistence refers to the…
-
Managing collections of data in Java
The Java Collections Framework supports multiple approaches to creating and managing collections of data. Collections of data can be ordered or unordered. There are various interfaces that are exposed by the Java Collections…
-
Static vs. non-static methods
If you want to use a method without creating an instance of that class, static methods are the way to go. If your method is related to an instance’s attributes, it should be…
-
Inversion of control in Spring
In Inversion of Control (IOC), the container itself maintains the class dependencies and manages the lifecycle of those dependencies. Objects are injected as dependencies when required at runtime or at application startup as…
-
Spring Data JPA
Spring Data JPA provides a common set of interfaces based on Java Persistence API (JPA) leveraging method naming conventions to derive data access behaviour using JPA and Hibernate which provides aspected behaviour. Practically,…
-
Java Objects & Classes
An object contains data and the behaviors of a single concept. The way we represent objects and how we use them are defined in classes therefore objects are an instance of a class…