When we want to copy an object in Java, there are two possibilities that we need to consider - a shallow copy and a deep copy. You will see a comparison between these two approaches and learn four methods to implement the deep copy.
#java #junior
http://www.baeldung.com/java-deep-copy
#java #junior
http://www.baeldung.com/java-deep-copy
Baeldung
How to Make a Deep Copy of an Object in Java | Baeldung
Learn four ways to create a deep copy of an object in Java, and why to prefer a deep copy over a shallow copy.
We are continuing with Spring Cloud Contract - this time focusing on support for Pact and especially the ability to connect to a Pact broker. The Pact broker acts as a repository for sharing the Pact contracts and verification results.
#spring #architecture #middle
https://ordina-jworks.github.io/spring/2018/04/28/Spring-Cloud-Contract-meet-Pact.html
#spring #architecture #middle
https://ordina-jworks.github.io/spring/2018/04/28/Spring-Cloud-Contract-meet-Pact.html
ordina-jworks.github.io
Spring Cloud Contract, meet Pact - Tim Ysewyn
Ordina JWorks Tech Blog
New releases from the last week:
IntelliJ IDEA 2018.2 EAP3: Advanced Contract Annotations and More
https://blog.jetbrains.com/idea/2018/05/intellij-idea-2018-2-eap3-advanced-contract-annotations-and-more/
Gradle Releases Version 4.7 with Support for Java 10
https://www.infoq.com/news/2018/05/gradle-releases-version-4.7
Lombok 1.18.0
https://projectlombok.org/changelog
#releases #ide #gradle #lombok
IntelliJ IDEA 2018.2 EAP3: Advanced Contract Annotations and More
https://blog.jetbrains.com/idea/2018/05/intellij-idea-2018-2-eap3-advanced-contract-annotations-and-more/
Gradle Releases Version 4.7 with Support for Java 10
https://www.infoq.com/news/2018/05/gradle-releases-version-4.7
Lombok 1.18.0
https://projectlombok.org/changelog
#releases #ide #gradle #lombok
InfoQ
Gradle Releases Version 4.7 with Support for Java 10
Gradle has released version 4.7 of their polyglot build tool with a host of new features including support for Java 10, incremental annotation processing, improved console logs, and new pre-compiled script plugins for Kotlin DSL.
Oracle's change to a six-month release cadence can make it difficult to keep up with the current state of Java, but this comprehensive guide will help you catch up and prepare for the future with updates on Java 9 and 10 releases, what’s new with Java EE, and an exploration into null-safety in Kotlin and Java.
#java #news #magazine
https://dzone.com/guides/java-features-improvements-amp-updates?oid=18jsfb
#java #news #magazine
https://dzone.com/guides/java-features-improvements-amp-updates?oid=18jsfb
dzone.com
Java: Features, Improvements, and Updates - Dzone Research Guides
It is quite easy to find articles about “how to create gradle custom tasks”, “how to structure gradle build files” etc. But not very common to find articles about how Gradle really works under the hood. In this article, the author focuses on a small part of the “dark side” of Gradle: the build lifecycle.
#gradle #junior #middle
https://proandroiddev.com/understanding-gradle-the-build-lifecycle-5118c1da613f
#gradle #junior #middle
https://proandroiddev.com/understanding-gradle-the-build-lifecycle-5118c1da613f
Medium
Understanding Gradle: the Build Lifecycle
It is quite easy to find articles about “how to create gradle custom tasks”, “how to decrease build time”, “how to structure gradle build…
This article presents a way to structure a Spring Boot application in vertical modules and horizontal layers and shows you how to test the verticals and layers with the testing features provided by Spring Boot.
#java #testing #spring #springboot #junior #middle #senior
https://reflectoring.io/testing-verticals-and-layers-spring-boot/
#java #testing #spring #springboot #junior #middle #senior
https://reflectoring.io/testing-verticals-and-layers-spring-boot/
reflectoring.io
Structuring and Testing Modules and Layers with Spring Boot
Slice your Spring Boot applications into vertical modules and make them testable in isolation using Spring Boot's testing features.
Kotlin is popular, Kotlin is trendy. Kotlin gives you compile-time null-safety and less boilerplate. But is Kotlin better than Java? Check this interesting story of a project being written twice with a lot of evident examples and consider keeping them in mind.
#java #kotlin #middle
https://allegro.tech/2018/05/From-Java-to-Kotlin-and-Back-Again.html
#java #kotlin #middle
https://allegro.tech/2018/05/From-Java-to-Kotlin-and-Back-Again.html
allegro.tech
From Java to Kotlin and Back Again
Due to the high interest and controversy concerning this blog post, we believe that it is worth adding some context
on how we work and make decisions at Allegro. Each of more than 50 development teams at Allegro has the freedom to choose
technologies from…
on how we work and make decisions at Allegro. Each of more than 50 development teams at Allegro has the freedom to choose
technologies from…
Java EE 8 has been released and its release includes a significant amount of changes relevant to server-side Java developers. Take a look at the new tools that came with it, see how the transition to Jakarta EE is going, and what the future of enterprise Java holds for you.
#java #middle #senior
https://dzone.com/articles/java-ee-8-and-the-open-future-of-java-ee
#java #middle #senior
https://dzone.com/articles/java-ee-8-and-the-open-future-of-java-ee
dzone.com
Java EE 8 and the Open Future of Java EE - DZone Java
This walkthrough of Java EE 8 covers the basics of Servlet 4, JSON-B, JSON-P, SSE, the Date-Time API, and how the transition to the open Jakarta EE is going.
If you are tired of all these beautiful patterns and best practices and you want to write something insane - read this one. Maybe you like horror stories but in code - this may appeal to you!
#java #forfun
https://www.e4developer.com/2018/05/13/how-to-write-horrible-java/
#java #forfun
https://www.e4developer.com/2018/05/13/how-to-write-horrible-java/
E4developer
How to write horrible Java | E4developer
I feel horrible today. I am sick- my throat hurts, my head is not working as it should. Hence, I decided I will tell you how to write horrible Java code. If you are tired of all these beautiful…
Collections have seen a lot of changes in the past couple of JDKs. Let's look at how they've improved in Java 9 and Java 10 and what the new ways of creating immutable ones are.
#java #java9 #java10 #collections #junior #middle
https://dzone.com/articles/java-collections-are-evolving
#java #java9 #java10 #collections #junior #middle
https://dzone.com/articles/java-collections-are-evolving
dzone.com
Java Collections Are Evolving - DZone Java
Learn how to create factory methods for Collections as well as create immutable copies of Collections with the changes introduced in Java 9 and Java 10.
Together with the growing popularity of microservices and light-weight REST API, we are witnessing another trend in Java: the rise of Java Microframeworks. Javalin, Micronaut, Spark and many more make building REST APIs a breeze. In this article, the author looks at this exciting space and shares his opinions on their use.
#java
https://www.e4developer.com/2018/06/02/the-rise-of-java-microframeworks/
#java
https://www.e4developer.com/2018/06/02/the-rise-of-java-microframeworks/
E4developer
The rise of Java Microframeworks | E4developer
Together with the growing popularity of microservices and light-weight REST API, we are witnessing another trend in Java: the rise of Java Microframeworks. Javalin, Micronaut, Spark and many more make…
We all know that it is very hard to build that perfect endpoint that satisfies all clients needs. In this blog post it is explained how you can add GraphQL to your existing JAX-RS application, without too much effort.
#graphql #wildfly
https://www.javacodegeeks.com/2018/05/graphql-on-wildfly-swarm.html
#graphql #wildfly
https://www.javacodegeeks.com/2018/05/graphql-on-wildfly-swarm.html
Java Code Geeks
GraphQL on Wildfly swarm | Java Code Geeks - 2018
“GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing…
New releases from the last week:
Elasticsearch 6.3.0 Released
#releases
https://www.elastic.co/blog/elasticsearch-6-3-0-released
Elasticsearch 6.3.0 Released
#releases
https://www.elastic.co/blog/elasticsearch-6-3-0-released
Elastic Blog
Elasticsearch 6.3.0 Released
The return type of a method can influence your code a lot. It is a valuable piece of information for your API, makes it easier to test a functionality and should be considered adequately every time.
#java #middle
https://www.javacodegeeks.com/2018/05/void-methods-as-behavior-black-holes.html
#java #middle
https://www.javacodegeeks.com/2018/05/void-methods-as-behavior-black-holes.html
Java Code Geeks
Void methods as behavior black holes | Java Code Geeks - 2018
Interested to learn more about Void methods? Then check out our detailed article that describes whether or not void methods are considered harmful!
Are you wondering what to read to improve your knowledge of Java or become a better Java developer? In this article you can get familiar with the greatest Java books that have withstood the test of time.
#java #junior #middle
https://dzone.com/articles/10-all-time-great-books-for-java-programmers-best
#java #junior #middle
https://dzone.com/articles/10-all-time-great-books-for-java-programmers-best
dzone.com
Top 10 Books of All-Time for Java Programmers - DZone Java
Here is a list of ten books that are helpful for Java programmers, teaching cleaner code, effective designs, improved performance, and object-oriented design.
Java 11 will soon be upon us in a few months. Let's take a look at some of the upcoming API Methods. Additionally you can check which methods have been removed from Thread class in JDK 11.
#java #java11
https://dzone.com/articles/api-updates-in-java-se-11-189
#java #java11
https://dzone.com/articles/api-updates-in-java-se-11-189
dzone.com
API Updates in Java SE 11 (18.9) - DZone Java
Let's take a look at the new APIs for Java 11's updated String class as well as a few other helpful APIs to be aware of as JDK 11 approaches.
Wondering about the memory impact of your Java collections? To put it differently: if your Java application crashed with the infamous OutOfMemoryError or experienced long GC pauses — did you check its collections for memory waste? Here's how to think about your collections while keeping overhead in mind.
#java #collections #middle #senior
https://dzone.com/articles/preventing-your-java-collections-from-wasting-memo
#java #collections #middle #senior
https://dzone.com/articles/preventing-your-java-collections-from-wasting-memo
DZone
How to Prevent Your Java Collections From Wasting Memory
Here are some tips to high-performance Java collections and advice for making decisions about using collections to keep memory overhead low.
Java 10 brings with it a host of changes and new features, but also some items to watch out for. In this article, you will go over some key ones and understand their impact on your code.
#java #middle #senior
https://dzone.com/articles/jdk-10-pitfalls-for-the-unwary
#java #middle #senior
https://dzone.com/articles/jdk-10-pitfalls-for-the-unwary
dzone.com
JDK 10: Pitfalls for the Unwary - DZone Java
Enjoying Java 10's new features, like local variable type inference and the Process API? Let's look over some JDK 10 pitfalls to keep an eye out for.
Struggling to make your Java application Cloud Native? In this article you can trace some really good advices to decrease memory footprint, improve startup time and in general, create an optimized Docker image using module system step-by-step.
#java #docker #cloud #middle #senior
https://medium.com/criciumadev/create-a-cloud-native-image-using-java-modules-a670be616b29
#java #docker #cloud #middle #senior
https://medium.com/criciumadev/create-a-cloud-native-image-using-java-modules-a670be616b29
Medium
Create a Cloud Native Image using Java Modules
How to create a minimal and optimized Docker image using module system step-by-step
Wondering how to take up Kubernetes and Spring Boot when scalability and elasticity is a big requirement in your architecture? In this article you can learn how to use both to build microservices that are easy to scale up and down.
#java #microservices #kubernetes #spring #springboot
https://dzone.com/articles/building-elastic-microservices-with-kubernetes-and
#java #microservices #kubernetes #spring #springboot
https://dzone.com/articles/building-elastic-microservices-with-kubernetes-and
dzone.com
Building Elastic Microservices With Kubernetes and Spring Boot From the Ground Up - DZone Microservices
In this microservices development tutorial, learn how to use Kubernetes to build microservices that are easy to scale up and down, with the complete code.