In this article we will discuss the concept of Java Reflection. Java Reflection is used to determine methods and attributes that will be used in a certain class at runtime.The Reflection in a nutshell, is used to determine methods and attributes that will be used in class (you do not know) at runtime. There are …
Difference between ArrayList, Vector and LinkedList in Java
This is a basic tutorial explaining about the APIs define under the collection package in Java. We encounter numerous questions from our readers to clarify the differences on these interfaces, we have come up with an tutorial to explain the key differences on these APIs. ArrayList, Vector and LinkedList, these confuse many beginners and even …
Design Patterns in Java
In developing a system, it is expected that some requirements are guaranteed, for example, performance, robustness, understanding, ease of reuse, modification, and use. The Design Patterns were created by the architect Christopher Alexander , in the 1970s. During this period the architect wrote two books: “Pattern Language” and “Timeless Way of Building“. These books were an example of …
ClassLoader in Java
In this article we will understand the basics of Classloader in Java. Let us first understand what is the meaning of classloader. What is the ClassLoader ? As its name implies, ClassLoader is a class that loads other classes. More scientific: The Classloader loads the bytecodes in its class to memory, so it can be …
Transaction Control Using Annotations in Spring Framework
In this article I’ll discuss the use of the Spring Framework Transactions, to make the application more secure and without inconsistencies. But before you initiate a transaction in Spring, let’s first understand what are transactions. The transaction concept can be described with the acronym ACID. 1. Atomicity:- A transaction must be treated as a single …
Dependency Management with JNDI
In this article we will see an introduction to dependency management through JNDI (Java Naming and Directory Interface). We will see how to name resources with annotations and how to search dependencies are created. Furthermore, we see examples of using JNDI API and alternatives to search certain components. The business logic of an application is …
Working with Threads in Java
In this article we will see on how to use practical and simple Java threads to perform parallel processing in your application. The robust Java platform offers us another bonus feature when we deal with parallel processing. In this article we present a practical use of Threads in Java, with the goal of working in …
Assertions In Java
In this article I’ll give a detailed explanation of the use of Assertions in Java. Assertion often confuse the programmer. It so happens that a programmer is confused as to which of the following to use: IF / ELSE or Assertions?. Assertions are basically used to test whether your code is according to the rules …