Java Code Geeks

Java 2 Java Developers Resource Center

Latest articles

Managers: Are You Responsible “To” or “For” People?

A manager said to me, “I’m responsible for this department of people.” I asked, “What does that mean?” He said, “I’m responsible for managing the people. I also define the products and what the people need to deliver.” I said, “That seems like a lot of work.” He nodded. “I’m exhausted. I work all...

kdb+/q – Display a Table as a Tree

This post shows how you can convert a keyed table to a hierarchical tree format in kdb+/q. This could be useful if you want to display data as a tree widget in a front-end. Consider the following keyed table of world populations: 01 02 03 04 05 06 07 08 09 10 11 12 13 ...

Guidelines for Java code review

Having another pair of eyes scan your code is always useful. It’s helped me get better at writing cleaner code and spot mistakes faster. You need not be an expert to review someone’s code. Some experience with the programming language and a review checklist should help you get started. The...

Introduction into GraalVM (Community Edition): And How the Future Looks Like?

1. Introduction In this last part of the tutorial we are going to speculate about the future of GraalVM, both from the short-term and long-term perspective. I think there are three main themes which GraalVM is going to evolve: Improving native image technologyImproving and optimizing GraalVM JIT...

Java Program to Add Two Numbers Without Using + operator

1. Introduction In this article, You will learn how to write a java program to add two numbers without using + or ++ operators. This looks quite interesting for freshers to think beyond their capability but it is very easy for mathematic lovers. Before that in the last tutorial, we have explained...

How To Make A File Read Only Or Writable In Java?

A quick guide on how to make a file read only in java using setReadOnly() method from File API. 1. Overview In this article, We’ll learn how to make a file as read only in java. After creating the file in java, we have to specify the file property readOnly flag to true. But, we ...

Chasing Java’s release train, from 8 to 16. Part 1: JDK 9, the last big banger

A lot has been said about JDK’s new 6 months release cadence cycle, and arguably, this is one of the most profound decisions being made in the recent history of the language and JVM platform in general. But if you, like me and other ~60% of the Java developers out there, stuck with JDK 8, ...

Java – How to Delete Files and Folders?

A quick guide to delete the files and folders in java with example programs. 1. Overview In this tutorial, We will learn how to delete the files and folders in java. Let us learn the example programs on file deletion and folder removal in java. 2. Java Files Delete Example First, Use delete()...

Project reactor and Caching with Caffeine

So you have a function which takes a key and returns a project reactor Mono type.  1 2 3 4 Mono get(String key) {     Random random = ThreadLocalRandom.current();     return Mono.fromSupplier(() - > key + random.nextInt()); } And you want to cache the retrieval of this Mono type by key, a good...

[MEGA DEAL] The 2021 Complete Computer Science Training Bundle (97% off)

Build Your IT & Data Science Skill Set with 212 Hours of Curated Content on Python, Linux, TensorFlow, Discrete Math, and More Hey fellow geeks, This week, on our JCG Deals store, we have another extreme offer.We are offering a massive 97% off on The 2021 Complete Computer Science Training...

Discover, share and read the best on the web

Subscribe to RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters! Get unfiltered news feeds or filter them to your liking.

Get Inoreader
Inoreader - Subscribe to RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters!