Home » Java » Core Java » Page 5

Core Java

[MEGA DEAL] Oracle Java Certification Exam Preparation Courses + Tests Training Bundle (92%)

Become a Certified Programmer with an Oracle Java Certification & Take a Step Ahead Toward a Brighter Development Career Hey fellow geeks, This week, on our JCG Deals store, we have another extreme offer. We are offering a massive 92% off on Oracle Java Certification Exam Preparation Courses + Tests Training Bundle. Get it now with only $29,99, instead of ...

Read More »

A Surprising Injection

So, I owe Jim an apology. He’d written a working mockito and JUnit test, and I told him in review that I didn’t think it did what he expected it to. While I was wrong, this scenario reads like a bug to me. Call it desirable unexpected side effects. Imagine you have the following two classes: 01 02 03 04 ...

Read More »

To Infinity (Streams) and Beyond!

Java allows you to process data in collections or streams. It’s very easy to think of streams as a technique to turn one collection into another. This can lead to some rather casual code where streaming data is repeatedly collected to some sort of collection, passed as a whole collection, and then processed some more. For 6 elements, who cares! ...

Read More »

Become a Master of Java Streams – Part 6: Creating a New Database Application Using Streams

Have you ever wanted to develop an “express” version of your database application? In this Hands-On Lab article, you will learn a truly easy and straightforward method. The entire Java domain model will be automatically generated for you. You just connect to your existing database and then start developing using Java streams. You will be able to create, for example, ...

Read More »

JDK 14: Records, Text Blocks, and More

Today’s Mark Reinhold post “JEPs proposed to target JDK 14: 305, 343, 359, 366, & 368” proposes targeting five more JEPs to JDK 14. Some highly anticipated features are among this group, although all but one are proposed to be in “preview” or “incubating”: JEP 305: Pattern Matching for instanceof (Preview)JEP 343: Packaging Tool (Incubator)JEP 359: Records (Preview)JEP 366: Deprecate ...

Read More »

JDK 14: CMS GC is OBE

JDK 14 Early Access Build #23 (2019/11/13) is now available. One of the more noteworthy changes with this build is the removal of the Concurrent Mark Sweep garbage collector. JEP 291 [“Deprecate the Concurrent Mark Sweep (CMS) Garbage Collector”] deprecated the Concurrent Mark Sweep (CMS) garbage collector back in 2017 with JDK 9 and JEP 363 [“Remove the Concurrent Mark ...

Read More »

jstat – Analysis

jstat is a simple utility tool, that is present in JDK to provide JVM performance-related statistics like garbage collection, compilation activities. The major strength of jstat is its ability to capture these metrics dynamically when JVM is running without any pre-requisite instrumentation. What do we mean by it? Say for example if you want to capture garbage collection related statistics, you ...

Read More »

Supporting Java 8

Although Java has version 13 released as for now, there are a lot of production installations running with Java 8. As a professional, I develop Java 8 code many times even these days and I have to be happy that this is not Java 6. On the other hand as an open-source developer, I have my liberty to develop my ...

Read More »