2020/3/13 A book called "New Generation Java Programming Guide" has been released [https://www.amazon.co.jp/dp/B085RBT3LH) This book consists of 4 parts
It has become. Since Java 14 has just been released the other day, it seems that it does not support the latest Java version, but the translator has added additions and translation notes about Java 13 and Java 14, making it easy to understand changes and new features from Java 10. I felt that it was a book that was organized and should be read by anyone working in Java. This time, I would like to comment on the "Part 1 Java 10" part of the above four parts. (I will not explain the contents very deeply, so I recommend reading a book if you are interested)
Java 10 is written about the following four.
Many Java users know that var can be used in variable type declarations in Java, but in books, when can var be used and when can't it be used? It is written in detail about. There is also a simple quiz-style confirmation question called code check. I think it will help you to check your understanding. However, sometimes there are problems that are not directly related to the main subject, but in that case, the explanation is supplemented with something like "This problem is not directly related to XX." And finally, there is even an opinion that using var makes it more important to name variables (because you don't explicitly describe the type).
Application class data sharing is a useful function that helps improve the startup performance of Java applications and reduce memory usage, but I think that there is not much information in Japanese. In the book, there is a sample that actually executes a command to create an application shared archive file, and you can try it out.
It briefly describes the G1 GC that became the default in Java 9, and then describes that Java 10 provided a parallel full GC instead of a full GC that was executed using a single thread until Java 9. .. It also explains how to read the G1 GC log, etc., which will deepen your understanding of the internal operation.
Other improvements describe the following:
There are many features that developers can't use directly, and all the items are briefly touched on, but Graal is mentioned (as many of you may already know) and Java versioning is explained.
This is the introduction of the new generation Java programming guide (Java 10).
Recommended Posts