In my blog I write about misconceptions. Encapsulation is something you learn when you study Java and OOP. But it seems that most books fail to truly explain the problems you want to solve with it and those you get by using it. Often it’s just a short chapter or even just a small part about the important concepts of OOP. This is leading to misconceptions and poor understanding of OOP.
(Note: I wrote this before the release of Java 10. Expect that some things are somewhat outdated.)
Continue reading Encapsulation
To be able to use a language you need to actually understand it. This may seem obvious, but books on Java usually don’t have much on understanding the language. When you learn French you will want to be able to translate from and to French. Continue reading Understanding Java
In Java it’s important to know what references are and how they are used. So it’s important to know what operations can be performed on references.
Continue reading What Operations can be performed on a Reference in Java?
Java (both the language and the JVM) are not aware of constants. To reduce confusion it’s better to not use the term “constant” in Java code, unless it’s actually a universal constant. Continue reading Java knows no Constants
Here’s some advice to all who have just begun learning Java. This also serves as an overview to my blog, where I write about all kinds of misconceptions and common problems with programming in Java. Continue reading Dos and Don’ts
Java doesn’t provide tuples. Here are some ideas what you can do about it. Continue reading Tuples in Java
So in Java there are many kinds of methods. I probably won’t even list half of them but I try to explain how different methods can be. Continue reading Types of Methods in Java
There’s a lot of confusion about “functions” in Java. Java doesn’t really have them, but an object could represent a function so it kind of does have them. I try to explain the different meanings of “functions” in Java, other languages and in mathematics.
Continue reading Functions in Java
New is used to create new objects. But it’s used carelessly.
Continue reading Misconceptions about the new Operator
In Java you can only reference final fields inside a closure. Here’s my solution*. Continue reading Recursive Closures in Java