Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!

 

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

 

and many more ....

 

 

Selenium NodeJS Example

This article explores using Selenium in node environment to automate testing. This covers running selenium inside local machine to utilize chrome browser 1. Introduction Selenium is used to automate browsers. Selenium WebDriver has found its place in test automation for web applications. It is used to create robust, browser-based regression automation suites and tests. It can be used for end ...

Read More »

JAX-WS Dependencies Example

In this post, we present a JAX-WS web services example using Maven dependency configuration. 1. Introduction Java API for XML Web Services (JAX-WS) uses XML files for configuring services and for exchanging data. JAX-WS is generally used for SOAP-based messaging. It relies on Java API for XML Binding (JAXB) to marshal and unmarshal Java objects to XML documents and the reverse. You ...

Read More »

Spring p-namespace Example

Spring framework provides several namespaces to simplify the xml configuration. In spring, developers can use the p-namespace to inject the setter-based dependency and an alternative to using the <property> tag. 1. Introduction Spring is an open-source framework created to address the complexity of an enterprise application development One of the chief advantages of the Spring framework is its layered architecture, ...

Read More »

Java EE Observer Design Pattern Example

1. Introduction Hi Java Code Geeks fan! This article is about a Java EE Observer Design Pattern Example. The observer pattern is one of the most widely used design pattern in programming. It is implemented in the java.util package of Java SE 8 as Observer and Observable. By extending these classes, we can easily implement the observer pattern. But this ...

Read More »

Hibernate CascadeType.PERSIST Example

Greeting readers, in this tutorial, we will create two entity classes related to each other and we will perform the cascading operations between them. 1. Introduction Object-Relational Mapping or ORM is the programming technique to map application domain model objects to the relational database tables Hibernate is a Java-based ORM tool that provides the framework for mapping application domain objects ...

Read More »

Java Prototype Design Pattern Example

1. Introduction to Java Prototype Design Pattern In this article, we would be discussing in depth the Java Prototype Design pattern. Java Prototype Design pattern is a creational design pattern that provides a way of prototyping objects of similar nature. In Java, the creation of objects is an expensive job in terms of the processing power being consumed. In case ...

Read More »

Java 8 Format LocalDateTime Example

1. Introduction Java 8 Date-time API provides a java.time.LocalDateTime class which is an immutable date-time object and often is viewed as a year-month-day-hour-minute-second format. It contains a java.time.format package to handle the formatting of dates and times. This package includes three classes: DateTimeFormatter – to print and parse date-time objects. It provides common formatting constants as well as a string ...

Read More »

Java Abstract Factory Design Pattern Example

1. Introduction In this article, we will depict Java Abstract Factory Design Pattern in detail. The Abstract configuration design, as its name proposes, is by all accounts an abstract class based method to allow creation of object factories with a template class that guides the development. Abstract Factory design pattern is specifically useful to build a class that explains how ...

Read More »

Hibernate CascadeType.REMOVE Example

Greeting readers, in this tutorial, we will create two entity classes related to each other and will perform the cascading operations between them. 1. Introduction Object-Relational Mapping or ORM is the programming technique to map application domain model objects to the relational database tables Hibernate is a Java-based ORM tool that provides the framework for mapping application domain objects to ...

Read More »

Java 8 Compare Dates Example

1. Introduction Java 8 added a new set of packages to provide a comprehensive date-time model. Java 8 Date-Time API is a JSR-310 implementation. There are several interfaces: ChronoLocalDate, ChronoLocalDateTime, ChronoZonedDateTime in java.time.chrono packages. They all have isBefore, isAfter, isEquals, and compareTo methods to compare two dates. Java 8 date classes: java.time.LocalDate, java.time.LocalDateTime, java.time.Instant, java.time.ZonedDateTime, java.time.chrono.JapaneseDate, java.time.chrono.MinguoDate, etc implement these ...

Read More »