Home » Author Archives: Dustin Marx (page 5)

Author Archives: Dustin Marx

New BigInteger Methods in Java 8

java-logo

Attention to new features in JDK 8 has rightfully been largely focused on new language features and syntax. However, there are some nice additions to the libraries and APIs and in this post I cover four new methods added to the BigInteger class: longValueExact(), intValueExact(), shortValueExact(), and byteValueExact(). All four of the newly introduced “xxxxxExact()” methods throw an ArithmeticException if ...

Read More »

Dubious Aspects of Features of JDK 8

java-logo

Most of us who develop with Java are generally enthusiastic for the features and improvements that come with JDK 8. However, there have been several recent posts that have pointed out some features that can be misused and abused and might lead to some additional issues in the future. These features, which remind me of the introduction of autoboxing in ...

Read More »

Constructor/Method Parameters Metadata Available Via Reflection in JDK 8

java-logo

One of the lesser advertised new features of JDK 8 is the optional ability to include parameter metadata in compiled Java classes [JDK Enhancement Proposal (JEP) 118]. This feature allows Java applications to access this parameter metadata information at runtime via reflection. The Java Tutorials‘ Reflection API trail includes a lesson called Obtaining Names of Method Parameters that discusses and ...

Read More »

Compiling and Running Java Without an IDE

java-logo

A recent Java subreddit thread called “Compiling Java Packages without IDE” posed the question, “is [there] a command that compiles a group of java files that are inside a package into a separate folder (let’s just call it bin), and how would I go about running the new class files?” The post’s author, kylolink, explains that “When I started out ...

Read More »

How to Begin Learning and Applying LaTeX

software-development-2-logo

I recently started working with LaTeX based on a colleague‘s recommendation. To be honest, it was a little steeper learning curve installing it and initially learning it than I’ve become used to when installing and using new software development products and I hope in this post to provide some basic tips to help others who want to investigate this “document ...

Read More »

Abstract Class Versus Interface in the JDK 8 Era

java-logo

In The new Java 8 Date and Time API: An interview with Stephen Colebourne, Stephen Colebourne tells Hartmut Schlosser, “I think the most important language change isn’t lambdas, but static and default methods on interfaces.” Colebourne adds, “The addition of default methods removes many of the reasons to use abstract classes.” As I read this, I realized that Colebourne is ...

Read More »

The Illuminating Javadoc of JDK 8

java-logo

One of the nice features of the standard JDK 8 API documentation is the ability to view all or different categories of methods as discussed in my blog post JDK 8 Javadoc Tweaked For Methods Listings. As convenient and useful as this categorization is, the text comments associated with many of the new classes and packages in JDK 8 are ...

Read More »

Serializing Java Objects with Non-Serializable Attributes

java-logo

There are multiple reasons one might want to use custom serialization instead of relying on Java’s default serialization. One of the most common reasons is for performance improvements, but another reason for writing custom serialization is when the default serialization mechanism is unsupported. Specifically, as will be demonstrated in this post, custom serialization can be used to allow a larger ...

Read More »

ObjectStreamClass: Peeking at a Java Object’s Serialization

java-logo

ObjectStreamClass can be a useful class to analyze the serialization characteristics of a serialized class loaded in the JVM. This post looks at some of the information this class provides about a loaded serialized class. ObjectStreamClass provides two static methods for lookup of a class: lookup(class) and lookupAny(Class). The first, lookup(Class), will only return an instance of ObjectStreamClass when the ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close