Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Blog Directory  >  Software Blogs  >  Programming Blogs  >  Java Code Geeks programming Blog  > 

Java Code Geeks Blog


javacodegeeks.com
Java 2 Java developers resource center, Java tutorials, Java news, Java How-To and more
2020-12-13 13:15
Spring Boot supports the following embedded servlet containers: Tomcat Jetty Undertow You can use Maven, Gradle, or Ant/Ivy as build tools to generate the jar file. However, you may need to… Read More
2020-12-11 08:00
Jakarta EE 9 is out, and with it the namespace change from javax.* to jakarta.*. When we talk about the namespace change, we mostly talk about changing the import statements in your code whe… Read More
2020-12-09 08:00
Hello in this tutorial, we will understand errors and built-in exceptions in python programming. 1. Introduction 1.1 Error A typing mistake can lead to a fault in the programming language be… Read More
2020-12-09 05:00
A parameterized test allows you to run a test against a varying set of data. If you find yourself calling the same test but with different inputs, over and over again, a parameterized test w… Read More
2020-12-08 08:00
Within an enterprise, there are services (systems really) which are widely popular, offer just what you need and are easy to use. There are also systems, which for years the organization tri… Read More
2020-12-08 05:00
Hello in this tutorial, we will understand the round() method to round the numbers while working with decimal numbers in python programming. 1. Introduction The round() method in python is u… Read More
2020-12-04 08:00
Whither Extension Methods? Apparently, there’s a java dialect called XTend which does this, but there’s no obvious equivalent of extension methods in Java. An extension method, a… Read More
2020-12-04 05:00
I’m in the process of reworking an open-source library to make it operate more easily for my use cases. The writer of the library has a particular view of how software should be, and i… Read More
2020-12-03 14:00
Following recent discussion online, I’d like to make what I consider to be an important statement about code. The purpose of code is to express the logic of the software both to the co… Read More
2020-12-03 05:00
As we know, locks are generally used to monitor and control access to shared resources by multiple threads at the same time. They basically protect data integrity and atomicity in concurrent… Read More
2020-12-02 05:00
Every now and then I jump on classes with multiple constructors or classes that are rigorous to work with. Let alone not being able to mock part of their components and at the end being forc… Read More
2020-12-01 20:00
Spring MVC is a web framework based on the model–view–controller pattern. It is based on the Spring principles and supports a wide range of server-side rendering technologies as… Read More
2020-11-30 05:00
In 1974, Liskov and Zilles defined a strongly-typed language as one in which “whenever an object is passed from a calling function to a called function, its type must be compatible wit… Read More
2020-11-29 13:15
Bean Validation is the Java standard for validation and can be used in Kotlin as well. However, there are also two popular alternative libraries for validation available in Kotlin: Konform a… Read More
2020-11-28 13:15
JDK 16 Early Access Build 25 (2020/11/18) includes changes for JDK-8247781 (“Day periods support”). As stated in the JDK 16 Early Access Build 25 Release Notes (“Day period… Read More
2020-11-27 08:00
This post shows how to test for expected exceptions using JUnit 5. If you’re still on JUnit 4, please check out my previous post. Let’s start with the following class that we wis… Read More
2020-11-25 14:00
Design patterns are solutions to known problems. The pattern represents an abstracted solution to a commonly experienced problem. As the solution is abstracted it is language agnostic. A non… Read More
2020-11-23 05:00
Security questions still exist. They are less dominant now, but we haven’t yet condemned them as an industry hard enough so that they stop being added to authentication flows. But they… Read More
2020-11-21 13:15
Hello in this tutorial, we will understand the string replace() method in python programming. 1. Introduction replace() method in python programming returns a copy of a string where all occu… Read More
2020-11-20 05:00
When building a RESTful API we often want to give consumers the option to order collections in a specific way (e.g. ordering users by last name). If our API supports pagination this can be q… Read More
2020-11-17 08:00
In this blog post we are going to look at the new styling and other new options available in OpenAPI and SwaggerUI Quarkus (v1.10.0 +). Styling Default style The default style for Swagger UI… Read More
2020-11-17 05:00
The work with Jakarta MVC 2.0 goes forward. According to the Jakarta EE Specification Process (JESP), we are now in the development phase where we will release as many milestones as we need… Read More
2020-11-16 05:00
Hello in this tutorial, we will understand the os.walk method to list the files in a directory using the python programming. 1. Introduction The os.walk(……) method will generat… Read More
2020-11-14 13:15
Hello in this tutorial, we will explain how a Constructor works in python programming, using examples. 1. Introduction Constructors are used for instantiating an object and assign values to… Read More
2020-11-12 05:00
A quick and practical guide to calculate the matrix transpose in java. Transpose of a given matrix is nothing but the changing the values and order. 1. Overview In this article, you’ll… Read More
2020-11-10 05:00
Hello in this tutorial, we will understand the different ways to use the map function in python programming. 1. Introduction The map() function in python programming executes a given functio… Read More
2020-11-08 13:15
Having to make product and technological decisions constantly can become problematic or even overwhelming over time. You may find yourself having to deal with tense situations where your pro… Read More
2020-11-06 08:00
This blog post is a follow up on the initial introductory post, Supersonic Subatomic GraphQL, and here we will explore more features, some that is experimental, that we hope to eventually mo… Read More
2020-11-06 05:00
Spring Mock-MVC can be a great way to test Spring Boot REST APIs. Mock-MVC allows us to test Spring-MVC request handling without running a real server. I used Mock-MVC tests in various proje… Read More
2020-11-05 08:00
When building RESTful APIs over HTTP the PUT method is typically used for updating, while POST is used for creating resources. However, create and update operations do not perfectly align wi… Read More
2020-11-05 05:00
One of the definitions of refactoring is to change the structure of the code without changing its behaviour. This requires the existence of unit tests. However… Sometimes we want to b… Read More
2020-11-04 05:00
Version controlling your RAML RESTful API specifications allows you to continue maintaining previous version of your APIs. The API designer from MuleSoft has a build in version control featu… Read More
2020-11-03 05:00
Allow an object to alter its behavior when its internal state changes. The object will appear to change its class. Participants Context: defines the interface of interest to clients Maintain… Read More
2020-11-02 05:00
Without violating encapsulation, capture and externalize an object’s internal state so that the object can be restored to this state later. Participants Memento: stores internal state… Read More
2020-10-31 13:15
There are occasion when it is more convenient to create an array inline. Here are several way to declare and initialise primitive arrays and java.util.Lists type arrays. Declare a primitive… Read More
2020-10-30 08:00
We have created a new quickstart that extends OptaPlanner use case portfolio with the facility location problem and also demonstrates building a cloud-native application using Quarkus, the n… Read More
2020-10-30 05:00
Encapsulation, as you know, is one of the four key principles in object-oriented programming. Encapsulation, according to Grady Booch et al., is “the process of hiding all the secrets… Read More
2020-10-27 05:00
Main points: property values can be hidden in Runtime Managerproperty names must be listed in the mule-artifact.xml fileproperty values can be edited manually and will remain maskedvalues re… Read More
2020-10-26 05:00
This article describes how you can use JShell to download and execute a Java application. It will eliminate the need for the installation of the application. Do not install, just run! The fi… Read More
2020-10-25 13:15
In the last two posts, we looked at generic architecture diagrams and security-specific diagrams. These diagrams reflect the current architecture of a system. This time we will look at using… Read More
2020-10-24 12:15
While developing a spring boot application, sometimes we need to run a method or a piece of code at startup. This code can be anything ranging from, logging certain information to setti… Read More
2020-10-22 10:00
We know how the code we write works, we understand it, we don’t need comments, it’s obvious, of course, we wrote it. This is what we all think and its true – well today its… Read More
2020-10-20 07:00
Java 15 introduces Sealed Classes, a preview language feature, that allows classes/interfaces to restrict which other classes/interfaces may extend or implement them. Here is an example: 1 2… Read More
2020-10-17 12:15
OpenSSL is an omnipresent tool when it comes to encryption. While in Java we are used to the native Java implementations of cryptographic primitives, most other languages rely on OpenSSL. Ye… Read More
2020-10-16 04:00
A quick and programming guide to how to get the union of two unsorted arrays in java with example programs. 1. Overview In this article, you’ll learn how to get the union of two arrays… Read More

Share the post

Java Code Geeks

×

Subscribe to Java Code Geeks

Get updates delivered right to your inbox!

Thank you for your subscription

×