Here’s a fact that you may not know. When you auto-box integral primitives (
long) to their respective wrapper classes (
Long), the wrapper classes cache all values from
+127. These values are later used by the
valueOf() methods to give better performance than using a constructor.
No, we are not talking about delicious double-chocolate cookies. Although I’ve really missed the fabulous Incus Data cookies during lockdown.
As you know, cookies are small text files. They are usually created by the web server, but are saved and managed by your browser.
Cookies can be harmless or incredibly dangerous. It all depends on how you use them.
Occasionally during development, your program may crash with an
OutOfMemoryError. What happened and how do you prevent it?
You may have seen the
@SuppressWarnings annotation before. Have you wondered how and why to use it?
I believe in code re-use. You believe in code re-use. No-one wants to re-invent the wheel, especially not if there is a really great, aero-dynamic, ultra-fast wheel available.
That’s why we use libraries and components. But those libraries and components are not written by super-humans. They are written by people like you and me – people who make mistakes.
This is a term you may not have heard. Although the term isn’t used often, these kinds of functions are common. We use higher-order functions all the time when we use streams.
I mentioned before that I am writing an online course on ethics for software engineers (which is now open for pre-enrolment!) During my research for this course, I found an interesting – and scary – statistic.
Last week I wrote about functional interfaces and how to use them as targets for lambda expressions. I showed you how we create a variable of a functional interface type and assign a lambda expression to it. Today I want to help you make sense of the set of standard functional interfaces.
In a previous post, I told you about the importance of using HTTPS instead of HTTP. Today I will look at some of the functionality that HTTPS adds in the form of security headers.