Blog Posts (english only)
You have landed on our blog, welcome! Here you will find exciting articles on the topics of java, OSGi, Eclipse, BND and much more. For example, take a closer look at our series “Bits Of Java”. Besides the basics, you will find useful tips for solving challenging problems with Java. And now: Have fun reading and deepening your knowledge.
-
Bits of Java – Episode 20: Java Exceptions
This week we will discuss a bit what happens when there is something wrong with your Java application. There are two main groups of things that could go wrong in your code, and we can distinguish them based on, let’s say, how early Java can detect the problem. In this... [more]
-
Using Pandoc to Make Beautiful LaTeX Presentations
We at Data In Motion Consulting GmbH are currently working at the preparation of a course, so we came across to the need of making some presentations. I, personally, as coming from an academic environment, was used to prepare my slides using LaTeX. Its beamer package, in particular, is quite... [more]
-
OSGi in a Nutshell What is OSGi
Here we are with our first episode of this new series about OSGi. Before entering the details of our use cases, we first need to give a brief definition of what OSGi is, and what it has tried to accomplish over the years. The OSGi Alliance was founded in March... [more]
-
Bits of Java – Episode 19: Java Enumerators
This week we are going to discuss Java enumerators. What are they? You can think of an enumerator as a way to define some special strings. Suppose, for instance, you want to implement a method that takes as input parameter a color name and returns to you whether this color... [more]
-
Talk OSGi Asynchronous Messaging at EclipseCon 2020
Today I gave a talk at the EclipseCon 2020 about the new upcoming OSGi Messaging Specification. We work on this specification for a while. The idea is based on one of our OpenSource Projects that is hosted on Gitlab: https://gitlab.com/gecko.io/geckoMessageAdapter The idea is to harmonize the API for asynchronous messaging.... [more]
-
OSGi in a Nutshell
With this post we would like to announce a new blog series, aimed to describe the world of OSGi. Data In Motion Consulting GmbH has been an OSGi Alliance member for many years now, and we also provide trainings for both developers and project managers, who want to start using... [more]
-
Bits of Java – Episode 18: Java Annotations
This week we will talk about another interesting feature of the Java language, annotations. What are annotations? Well, you can think of them like a convenient way to express meta data of your objects, where, with objects here, I mean not only Java objects, but also methods, fields, and also... [more]
-
Bits of Java – Episode 17: Modules in Java
This week we will briefly discuss one, relative new, feature of the Java language, which is the Java Platform Module System (JPMS). The JPMS was introduced in Java 9, with the purpose of introducing a new encapsulation level and allowing developers to build their applications in a more modular way.... [more]
-
Bits of Java – Episode 16: Method overriding vs method hiding
Last week we started looking into the difference between method overriding and method overloading. This episode will cover, instead, the difference between method overriding and method hiding. We will not go into all the technical details of method overriding, since we already discussed them. What’s important to remember from last... [more]
-
Bits of Java – Episode 15: Method overriding vs method overloading
In this episode we will discuss a bit the difference between method overriding and method overloading. These are two features that Java supports, under certain conditions, and that can be misleading at a first glance. Let’s start with the simpler one (at least for me), method overloading. Method Overloading A... [more]
-
Bits of Java – Episode 14: The static keyword
In this episode we will discuss the meaning of the static keyword and we will see where it can be used in your code. There are various places in your code when you can use the static keyword. Let’s see them. static fields: when you mark a variable as static... [more]
-
Bits of Java – Episode 13: From Arrays to Lists and vice versa
In this episode I would like to discuss how to pass from an array to a list and vice versa, and which are the things to keep in mind once the conversion has been done. From *list* to *array*: to pass from a list to an array you can simply... [more]
-
Bits of Java – Episode 12: Wrapper Classes
In this episode we will talk about the Java wrapper classes for the primitive types. But first, let me share with you some wonderful news: this week I passed the Orcale Java SE11 Programmer I! Writing this blog hepled me a lot to memorize and to clarify the concepts. But... [more]
-
Bits of Java – Episode 11: Compare and Search in Arrays
This week I would like to talk about two methods of the Arrays class which I was not familiar with, and whose logic can be a bit tricky: Arrays.binarySearch and Arrays.compare. But first, let me briefly review what an array is. An array is a memory section which is reserved... [more]
-
Bits of Java – Episode 10: String Pool
Today we will discuss about the String Pool. What is it? Well, in the last post we talked about the fact that String are immutable, and that every time you manipulate a String you are actually creating a new object in memory, which is, for sure, not the most efficient... [more]
-
Bits of Java – Episode 9: String vs StringBuilder
In this post I would like to review the difference between String and StringBuilder. The main difference between the two is that String is immutable, StringBuilder is not! What does immutable mean? Well, it simply means that when you try to manipulate an immutable object what you are actually doing... [more]
-
Bits of Java - Episode 8: Labels in Loops
This week’s topic will focus on the use of labels in loops. Did you know that you can use labels to identify your loops? I, for sure, did not know that! It’s true that is not very common, because in most of the cases they decrease your code readability, which... [more]
-
Bits of Java – Episode 7: The switch Statement
This week I will try to describe the switch statement, focusing in particular to which kind of variables are allowed to be used with such statement. This is one of the Java features that changed a lot over the different releases, thus I hope also some of the most experienced... [more]
-
Bits of Java – Episode 6: Logical Operators and their Short-Circuit Version
Before starting preparing this exam, I had always used the logical operators && and ||, which you all probably are familiar with. For those who are not, both are binary operators, where the two operands are boolean expressions. The first one returns true if and only if both the operands... [more]
-
Bits of Java – Episode 5: Numeric Promotion
This week we will talk about numeric promotion. With this term we identify the process for which the compiler promotes a numeric type to a different one. As you probably already know, this can happen using casting. On the other hand, there are some cases in which the compiler automatically... [more]
subscribe via RSS