Category: Java

You will find a greater need for Integration tests as your testing requirements become more complex when you’re supporting enterprise application development using the Spring Framework. Sometimes, allowing Spring to manage the beans makes your testing easier, sometimes you want to test parts of your Spring Configuration, sometimes you’ll need to wire in a Mock component for […]Continue reading

Testing software has many meanings, which are often confused. In the last decade or so, we’ve seen agile development methodologies go mainstream in the modern enterprise. These methodologies are often misunderstood and misused. Some times they assume you have clean testable code. Often, when dealing with legacy applications, you simply don’t. I’ve encountered legacy Java […]Continue reading

People expect computer programs to be accurate and precise when calculating numbers, and especially programs that perform monetary calculations and as a Java developer, sooner or later you will need to deal with monetary calculations. You may be tempted to use the primitive types of float or double for non-integer numbers. Both of these types support numbers with decimals. […]Continue reading

Introduction The ability of an object to behave differently in different situations is called Polymorphism. This concept is core to object oriented programmer and key to programming in Java. There are two types of polymorphism prevalent in Java; Static Polymorphism and Dynamic Polymorphism. As a Java developer, you will routinely use each type of polymorphism. Types of Polymorphism […]Continue reading

Introduction to Java Variables A variable in Java is the name of a memory location. This memory location is used by the Java programs for carrying out the various tasks and calculations. Whenever a Java program is run, some input may be provided to it, or some data might be required to be saved temporarily […]Continue reading

This is a simple hello world example using Spring Framework 4. We will use Spring Boot and Spring Initializer to get things kicked off easily. Video Tutorial Follow this quick video tutorial to get a Spring Boot starter project. Step by Step Instructions Get Starter Project from Spring Initializer Step One Go to the Spring […]Continue reading

Spring Boot is a recent addition to the Spring Framework. It makes starting a Spring based project crazy easy. Before the days of Spring Boot, you as the developer were responsible for creating a project and managing the dependencies. Now you can use the Spring Initializer to download a ready made project with common dependencies […]Continue reading