background preloader

Java

Facebook Twitter

Code

Documentation. After Five-Year Drought, Java SE7 Is Here. It's the first major release in five years and took 9,494 bug fixes, 1,966 enhancements, 9,018 changesets, 147 builds and four JSRs to get here.

After Five-Year Drought, Java SE7 Is Here

It's also the first release of the Java platform under Oracle's stewardship, and threatened not to happen until Oracle put its foot down and went off and wheeled and dealed and leveraged IBM. (Remember the Apache Foundation stalking off and slamming the door?) Still, it's based on the open source OpenJDK, making it something of a novelty for a commercial release. Java Secret: Using an enum to build a State machine. Overview The enum in Java is more powerful than many other languages which can lead to surprising uses.

Java Secret: Using an enum to build a State machine

In this article, I outline some the individual features of enum in Java, and put them together to form a state machine. Enum for Singleton and Utility class You can use an enum as a Singleton or Utility very simply. Enum to implement an interface You can also implement an interface in an enum. Java Collections Library. How do you get started in programming? We Recommend These Resources I recently received the email below from someone asking how he might get started in programming.

How do you get started in programming?

I think this is a popular topic, especially given the current economic situation in the US (unemployment is high, but not in the tech industry). For that reason, I figured I'd post my response here and allow others to chime in with their advice. I read about you on LinkedIn, forgive my intrusion. Since you seem like an expert in the field of designing websites I wanted to know your thoughts on switching into this field late in life. What languages do you think I should focus on? Thanks for any insights…. My reply: It's interesting that you're switching from finance to programming. I think the most valuable skills these days are front-end skills (HTML, CSS and JavaScript). Java: Getting the size of an Object. 2inShare We Recommend These Resources Java was designed with the principle that you shouldn't need to know the size of an object.

Java: Getting the size of an Object

There are times when you really would like to know and want to avoid the guess work. Measuring how much memory an object uses There are three factors which make measuring how much an object uses difficult.The TLAB allocates blocks of memory to a thread. Size of objects in a 32-bit JVM. Kotlin and the search for a better Java. Another day, another new JVM language.

Kotlin and the search for a better Java

This time Kotlin. My first point here is that another group is willing to go public and say that Scala is too complex. It is easy to miss this, but anyone writing a new language right now (Kotlin, Ceylon, Gosu, Fantom, ...) is implicitly saying Scala isn't right. Of course I don't expect Scala supporters to like this or agree with it, but the truth is that I and many others have looked at it and run fast in the opposite direction. As I've commented before, my dislike for Scala is not support for Java. More generally, my position is that as a community there is a role for a popular, statically typed, industrial, Java-like langauge without Java's warts. I can't comment that much on Ceylon as it is more vapour than reality and from the little public information appears to have some dubious design decisions, especially around verbose words rather than syntax.

Fantom is probably the most different of the four. Java Best Practices – String performance and Exact String Matching. Continuing our series of articles concerning proposed practices while working with the Java programming language, we are going to talk about String performance tuning.

Java Best Practices – String performance and Exact String Matching

We will focus on how to handle String creation, String alteration and String matching operations efficiently. Furthermore we will provide our own implementations of the most commonly used algorithms for Exact String Matching. Many of these algorithms can achieve far more superior performance compared to the naive approach for exact String matching available with the Java Development Kit. This article concludes with a performance comparison between the aforementioned Exact String Matching algorithms. All discussed topics are based on use cases derived from the development of mission critical, ultra high performance production systems for the telecommunication industry.

All tests are performed against a Sony Vaio with the following characteristics : The following test configuration is applied : Java Developer Most Useful Books. MemoryAnalyzer. About The Eclipse Memory Analyzer is a fast and feature-rich heap analyzer that helps you find memory leaks and high memory consumption issues. A summary of the releases is available at MemoryAnalyzer/Releases. Getting Started See the download page for installation instructions.

Tutorials View the Webinar recorded on 29 May 2008. See the Eclipse Memory Analyzer Tutorial. Run the leak report to automatically detect memory leaks. Jailer - Database Subsetting. Open Source Document Management System - LogicalDOC. The Java™ Tutorials. The Java Tutorials have been written for JDK 8.

The Java™ Tutorials

Examples and practices described in this page don't take advantage of improvements introduced in later releases. The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications. They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into "trails". Trails Covering the Basics These trails are available in book form as The Java Tutorial, Sixth Edition. Creating Graphical User Interfaces Creating a GUI with Swing — A comprehensive introduction to GUI creation on the Java platform.Creating a JavaFX GUI — A collection of JavaFX tutorials.

Open Source Software in Java. Expression Language. JAAS Tutorials.