Peter Verhas

Peter Verhas
Peter Verhas is a Senior Software Architect at EPAM Switzerland. He has more than ten years of Java development experience and more than twenty years with C and other programming languages. He is the author of the books Java Projects, Mastering Java 9 and Programming Java 9 by Examples. He regularly blogs in English (at DZONE, Java Code Geeks and his own blog Peter has a Master’s degree in Electrical Engineering and studied at TU Budapest, TU Wien, and TU Delft. He worked for companies like Digital Equipment Corporation, T-Mobile supporting telecom and finance industries and he was a teacher at TU Budapest for a short period. Peter also publishes open source programs on and is the author of the ScriptBasic interpreter.

All Posts by this author

To generate code or not: That is the question.

In Focus: Code Generation

There are several occasions when you will need to generate code during development. Find out when to generate your own code, what code redundancy is, and when code generation can happen in different cases. In this article, you will also get an overview about Java::Geci, a library for generating Java code in the middle of the compilation, deployment, and execution life cycles.

Why value types are important

The new ValueType in Java

Java, as it is now, has two different types of data—primitives and objects. In the coming releases, there will be a new type that is called ValueType. For everyday programming, there should be no difference between objects and value types but under the hood they are really different. They are like objects but work as if they were primitives. The second part of the sentence means: they are effective. Other languages have this type of data handling, though they usually do not call them with this name.