Home » Java » Page 32

Java

REST: Sorting collections

java-interview-questions-answers

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 quite an important feature. When clients only query a specific part of a collection they are unable to order elements on the client. Sorting is typically ...

Read More »

Saving JetBrains MPS models in a database using Modelix

JetBrains MPS is our tool of choice to build Domain Specific Languages targeting professionals who are not developers. MPS is a great choice but over several projects we ran into specific issues for which we are researching an answer. In this article we see how we can solve one of these issues by using Modelix to store MPS models into ...

Read More »

Permutation – Heap’s Algorithm

 This is a little bit of experimentation that I did recently to figure out a reasonable code to get all possible permutations of a set of characters.  So say given a set of characters “ABC”, my objective is to come up code which can spit out “ABC”, “ACB”, “BAC”, “BCA”, “CBA”, “CAB”.  The approach I took is to go with ...

Read More »

Stylish API

java-interview-questions-answers

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 has changed from the vanilla Swagger UI to a Quarkus branded page: In this post we mostly focus on Swagger UI, but the styling options also ...

Read More »

Jakarta MVC 2.0 Progress

java-interview-questions-answers

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 until we are satisfied to move on to finalize the specification. There are already Milestone 1 releases available of both the Spec+API and the TCK in Jakarta ...

Read More »

Kafka & Zookeeper for Development: Local and Docker

java-interview-questions-answers

Kafka popularity increases every day more and more as it takes over the streaming world. It is already provided out of the box on cloud providers like AWS, Azure and IBM Cloud. Eventually for cases of local development it is a bit peculiar due to requiring various moving parts. This blog will focus on making it easy for a developer ...

Read More »

GC Logs changes for migrating from JDK 8 to JDK 11

Problem Moving from JDK 8 to JDK 11 is quiet subtle. One issue which many people have faced is regarding is GC Logs. Solution JDK 11 uses generic logging mechanism. So flags like PrintGCDetails, PrintGCDateStamps don’t work anymore. The new format is easy to use once you understand it. Format is : 1 [tag selection][:[output][:[decorators][:output-options]]] There are 4 sections to ...

Read More »