How to create a kind of volatile final field i.e. a static field that will be considered as a constant by the VM but that can be updated as well using JSR 292 API.
Just wrapped up my last performance tuning course for this year and for the second time running, some members of my Parisian group had the opportunity to run the exercises on virtualized hardware. The results were interestingly horrible
Recently I came across an interesting class loading behavior. Look at the test below...
Was added to his package to facilitate applications which needs scalable processes.
A feature is atomic variable. Variable atomic means that it cannot be divided - it's like the S.O. with any resource (Driver CD, USB) cannot be divided but needs be used in many processes.
The java.util.concurrent library added a little gem of a class, TimeUnit, which is well worth knowing a bit about.
It’s after JavaONE and as promised, here is the answer to the performance puzzler with a stack trace.
Java 7 introduces a couple interesting new Locale methods and categories, but ResourceBundle caching seems to have problems.
Java 7 introduces some new internationalization support, and it starts with Locale.
I recently installed Java 7 on my Mac OS X system. Although the installation went smoothly, I did run into one problem
A new tutorial exercises VisualLangLab using all the examples and techniques in Chapter-3 "A Quick Tour for the Impatient" of the book "The Definitive ANTLR Reference". A new "WildCard" pseudo-token that matches any other defined token has been added to facilitate recovery from grammar errors in the input. Read about the various other improvements that make VisualLangLab even more user-friendly.
This blog describes how to build both, a 64-bit and a 32-bit version of OpenJDK 8 on a plain, vanilla WindowsXP 64-bit operating system using only free (as in free beer) tools.
font-family: arial, helvetica, sans-serif;
margin: 0px 0px 10px 0px;
I talk about java.lang.ref.* in my performance tuning course because these things (along with anything that implements finalize) are more expensive to create than normal objects and require at least two rounds of GC before you're completely rid of them. Of the bunch, that includes Reference, WeakReference, SoftReference and two other private reference classes that get mixed up with finalization, PhantomReference has to be the strangest.
In 1996, a group that I was working with devised a development process which we called Defect Driven Design, otherwise known as D3 (D-Cubed). We were a bit disappointed by not surprised that D3 never really caught on but just recently I saw a glimmer of hope for a revival.
Eclipse is famous IDE in em Java, follows the open source model. The Eclipse project was stated by IBM that does the first version, then donated like open source for the community. The begin costs was above 40 millions. Nowadays, the Eclipse is one of the most used worldwide. Has important feature how the SWT uses and not the Swing, there are too many plug-ins...
Given some information about Java 7, i will now show the imrovements to the latest version.In this article i use the netbeans version 7.0.1, for this you need to download the JDK 7 (the link is below the article). After downloading and installing Netbeans (but during the installation remember to select the JDK 7 path).
The first example will show switch with String, previously...
In my last blog I’ve introduced JavaFX 2.0 beta, describing an initial port of JavaFX Balls, also in beta stage at that time. Now I finally finish JavaFX Balls 3.
Look ma, no design!
I don’t pretend to be a designer, and the consequence is that when I make a mashup of animation, video and web, that’s the result. Get the source code here.
I’ve added new layers of content...
Welcome java 7 part 3 -NIO 2 JSR 203
So like the coin project, in the NIO 2 there aren't unprecedented features in this e -specification, but now it's possible do some easier work I/Os in java. With the class java.io.Files are possible to perform several operations in simple mode. For that it needs and uses the java.io.file.Path, this interface represents files and...
In May Google and Willow Garage announced the first pure-Java implementation of ROS - Willow Garage's Robotic Operating System. Called “rosjava”, the new library is still at alpha level, but it is clear that active development continues. Several vendors now provide hackable kits.