The Java Tips blog is the continuation of one of JavaWorld's most popular long-running series. Find new Java development tips published here weekly and peruse the Java Tips Archive for older tips submitted by your peers in the Java developer community.
Submit a Tip: jwedit@javaworld.com
Subscribe to the feed
Serialization is the process of saving an object's state to a sequence of bytes; deserialization is the process of rebuilding those bytes into a live object. The Java Serialization API provides a standard mechanism for developers to handle object serialization. In this tip, you will see how to serialize an object, and why serialization is sometimes necessary. You'll learn about the serialization algorithm used in Java, and see an example that illustrates the serialized format of an object.
Read more ...
Caching is a vital cross-cutting concern for improving the performance of enterprise applications. If you're building an application with the Spring framework, declarative caching services using Spring Modules offer an easy way to add and tune caching functionality without touching an application's code. Fundamentally, the approach works very well in achieving its intent; however, it falls short when scaled in real-world scenarios.
Read more ...