Fork-Join Framework was added as part of Java 7 which makes use of the ExecutorService interface to distribute tasks to the worker threads in the thread pool. The difference in Fork-Join is that the ideal worker threads can steal queued subtasks from the other tasks and execute them. There are a few important classes you [...]
Tag Archives: Java
Handling/Avoiding Null’s in Java using Guava versus Scala
June 9, 2012
There was a discussion about nulls in the latest episode of JavaPosse. Having been inspired from that discussion and with an urge to check out Google Guava library, I came across a way to handle Null’s in Guava which is very similar to the way Scala handles. Lets consider the Person class which is defined [...]
java.util.Objects- A static utility for objects introduced in Java 7
June 6, 2012
A lot of you would be unaware of this new static utility for objects introduced in Java 7- its the java.util.Objects class. I came across this usage of class while I was browsing through the updated Java 8 collections API. The static utility methods added as part of java.util.Objects class allow us to perform null-safe [...]
Using Morphia- Java library for MongoDB
June 3, 2012
In our post on developing sample Todo Application using JavaFX and MongoDB, we showed how we can use MongoDB, JavaFX to create a sample application. In that post we used the API provided by MongoDB to carry out the DB operations. In this post lets look at how we can use Morphia to carry out [...]
JavaBeat Newsletter-1: What’s new and noteworthy in the Java ecosystem?
June 2, 2012
We at JavaBeat have thought of coming up with a fortnightly post, a JavaBeat Newsletter covering the latest news in the Java ecosystem be it in the Java language, Other JVM based languages, Cloud support, Tools and other frameworks and also few noteworthy posts added on JavaBeat. Here we have the first edition of JavaBeat [...]
Virtual Extension Methods(or Defender Methods) in Java 8
May 16, 2012
As part of the JSR-335 (Project Lambda) which adds closure support to Java language, there were quite a few changes in the language to support the use of closures in the existing Java APIs (Collection APIs to a large extent). One such change is the introduction of Virtual Extension Methods. We all are aware of [...]
Using Lambda Expressions of Java 8 in Java FX event handlers
May 14, 2012
Note: The Project Lambda (JSR-335) to be added in Java 8 is evolving and the sample here is how one can use Lambdas with the current Java8 build downloaded from here. I will try to update the sample if there are any changes in the API in future. I thought it will be good to [...]
Developing a Simple Todo Application using JavaFX, Java and MongoDB- Part-3
May 13, 2012
In the previous post we created the UI for adding a new Todo where in we used a Tab, TabPane and added the required controls- TextField and a Button to the Tab. Going forward, in this post we will create the UI for listing the Open Todos i.e the Todos which have not been marked [...]
Developing a Simple Todo Application using JavaFX, Java and MongoDB- Part-2
May 12, 2012
In my previous post: I setup the objective of our sample application and named it as TodoFX (I know lot of you would have missed the naming part, lack of creativity in naming drives me create portmanteau of technology and usage of app) Created the back end for our sample application, in the process we [...]
Developing a Simple Todo Application using JavaFX, Java and MongoDB- Part-1
May 9, 2012
Over a series of 2 posts or so, I would try and show how to develop a simple Todo Desktop application using JavaFX as the Frontend, and the well known NoSQL database MongoDB as the Backend and using Java as the glue between both of them. The main aim of developing this application is to [...]






June 12, 2012
3 Comments