I’m excited that the fifth edition of my Java Cookbook has been released! As you’d expect it drops some old material to make room for new capabilities right up to Java 23 and much of Java 24, also including some third-party APIs such as using AI LLMs from within a Java Application. You can order it …
Another year, bringing fresh challenges for the world: Ongoing warfare in Ukraine and Gaza (those are just the two that make the daily news), massive wildfires in California, a rapidly changing climate worsening fires, floods and hurricanes, and a new administration taking over a deeply divided …
It’s common for non-technical people to assume that Java and JavaScript are alike, but it’s rather more like Tom and Tomato, or Pot and Potato. Or as one (Java-leaning) wag based in the USA said, JavaScript is to Java as George Burns is to George Washington :-)
To be more precise:
Java is a …
As a long-time user of the Eclipse IDE, I’ve always been impressed by how well it is optimized for developer productivity. Google a few years ago foisted on us the switch of Android Studio from being Eclipse-based to being IntelliJ IDEa-based. So it’s time to learn some new dance steps. Here’s some …
Free Software is software that you can use without paying for it. Open Source software is software that you can get the source code for; unlike most commercial software which is closed source. Open Source software tends to be more reliable and have bugs fixed more quickly compared with …
Suppose youare unit testing code and you need to test some logic in an HttpServlet.
There are several approaches:
Use mockito to mock the HttpServletRequest and HttpServletResponse;
Refactor so the logi does not depend on the Servlet API at all (best approach)
Other?
I had a servlet …
|
I have a number of books in print, one or two out of print, and some not yet in print. You can see a full list on Amazon. Here are details on some of the main ones. |
For Software Developers |
|
|
O’Reilly Java Cookbook, updated from time to time. My favorite book; my magnum … |
Despite a lot of FUD - Fear, Uncertainty and Doubt - spread by Java haters and those who
Java Accessors have always been a mixed bag and a source of suspicion. Why have so much code that just sets and gets variables? Yet every "Java 101" teaches that these are the standard way of providing "encapsulation", something that 99.44% of accessors actually fail to provide!
Long ago, …
This year's JavaOne is going to mark the twentieth anniversary of this technology. It's a long way from Java 1.0 to Java 8 and 9, but it's a story of continuous (if slightly bumpy) growth and evolution. Oracle's takeover of Sun Microsystems was kind of a monkey wrench in the works, and took a while …