Skip to main content
View Archives: Homepage | Spotlights | Articles | Weblogs

java.net Spotlight

The March/April issue of Java Magazine jam-packed with information to get you started with Java SE 8, a revolutionary release of the world

[03/26/2014]

JFXtras has a TimePicker that uses a number of Sliders to represent hours, minutes and seconds. And even though this is functionally an OK user interface, it is visually not very appealing. Recently I changed my phone and ran into this Android TimePicker. Basically the hour picker consists of two round sliders, but I find it visually much more appealing than my slider UI. So I set out to create something similar...

[03/23/2014]

The big news at the latest edition of EclipseCon North America, which wrapped up in San Francisco on Thursday, was Oracle's Java 8 announcements. The conference planners devoted an entire day at the show to Java 8 (George Saab's opening presentation on "Java Day" was standing room only). The Foundation itself is providing Java 8 language support as an add-on to the Eclipse IDE...

[03/21/2014]

To celebrate the release of Java 8 which was released just minutes ago, I am publishing a draft version of my Java 8 Lambdas Tutorial. It is a nice visual way to learn the Streams API, and will help you get started taking advantage of lambdas in your own applications from day 1. This article is scheduled to appear in the next Java Magazine release, so please look forward to the final version...

[03/19/2014]

Two years, seven months, and eighteen days after the release of JDK 7, production-ready builds of JDK 8 are now available for download! Thanks! A major new release of a software system as large as the JDK is the direct work of many hundreds of developers, with indirect contributions from thousands more. By way of thanks I

[03/18/2014]

This is a good time to consider new options for a

[03/17/2014]

Someone once said that: Junior programmers think concurrency is hard. Experienced programmers think concurrency is easy. Senior programmers think concurrency is hard.That is quite true. But on the bright side, Java 8 will at least improve things by making it easier to write concurrent code with lambdas and the many improved APIs. Let

[03/16/2014]

This time of the year. Finally. It was about time. The 2014 JavaOne Call-For-Papers opened a few days back. And it is going to be a great one. Plenty of changes upcoming and it will have a huge focus on community speakers. The rolling acceptance process from last year is back, so submit early! There is a new dedicated track for Agile development this year, making a total of nine Java tracks. This year's tracks are...

[03/13/2014]

The long awaited, much anticipated release of Java SE 8 is nearly upon us. March 18th is the official release date, though numerous "launches" and other events will follow. A lot of work went into this release, with contributions coming from many quarters -- including Java User Groups (JUGs) around the world who participated in the Adopt-a-JSR program. The Java Community Process (JCP), which manages the development of standard technical specifications for Java technology, launched the program in December 2011...

[03/12/2014]

JSR 337 which defines the content of Java SE 8 is now Final! That means that Java 8 is about to be released. Over the coming months, a lot of events will take place across the globe to celebrate this important release. Here's a recap of the initial Java 8 events that are taking place over the next 2 weeks. NightHacking Java 8 Tour (March 11th - Apr 19th); Java 8 Day at EclipseCon (March 18th - San Francisco)...

[03/11/2014]

As many of you are aware, we have been running the Java EE 8 survey as a way to solidly kick start the next round of standardization for the platform. We would now like to wrap up the survey and move on to the next logical steps. To that end, we will be closing the third and final part of the survey in the next two weeks (specifically on Monday the 24th, midnight Pacific time). If you still have not filled out the survey, please do now: glassfish.org/survey...

[03/10/2014]

February was a busy month with all of the preparations for the upcoming Java 8 release in March. The four new JSRs being developed through the JCP for the Java SE 8 Platform, have completed their JCP Executive Committee (EC) Final Approval Ballots and published their Final Release milestones. Java SE Final Releases: JSR 308, Annotations on Java Types; JSR 310, Date and Time API; JSR 335, Lambda Expressions for the Java Programming Language...

[03/09/2014]

Recently, we released Early Access #2 versions of Java ME 8 and Java ME SDK 8. As expected... there are still bugs and deficiencies and we have been busy fixing them

[03/06/2014]

It's that special time of the year again - the JavaOne 2014 call for papers is now officially open! JavaOne will be held September 28 - October 2 in San Francisco. You can read about the details and submit here... This year, I have the privilege to lead the Java EE track along with Lance Andersen. Please do consider this a personal invitation from me to submit your best ideas to one of the most prestigious gatherings of the minds for server-side Java...

[03/05/2014]

Show the world your embedded Java + Internet of Things (IoT) application for a chance to win a trip to JavaOne 2014! 12 winners will receive a trip to JavaOne 2014, the #1 place to meet world-renowned Java experts. In addition, six students will receive laptops and certification vouchers. Team up and submit the video and code of your project by May 30, 2014. Don't know how to start? We are providing eight free online training sessions in March and April...

[03/03/2014]

Memory mapped files are a good and often overlooked tool. I won

[03/02/2014]

Early Access builds of JDK 7u60 have been updated with Build b07. This build updates HotSpot in JDK 7u60 to HotSpot 24.60 build 09, updates time zone support data to tzdata2013i, and fixes various issues, one of which was reported by Groovy developers - thanks! If you find issues during your own testing of this build, please report a bug...

[02/28/2014]

The results of our recent Java EE 8 Community Survey are in! As we promised earlier, the final phase of this outreach is an opportunity for you to let us know your priorities among the most frequently requested of the features from the surveys... So today, we are launching the final survey (intelligently named 'Part 3'). The idea is very simple, we are granting you a budget of 100 points to tell us which proposed improvement(s) you think is (are) important...

[02/26/2014]

If the following method thread-safe? How to make it thread-safe?... ... This post explains a general interview question that has been asked by Google and a lot of companies. It

[02/25/2014]

One of the common questions asked during my #JavaEE7 presentations around the world is how do WebSockets compare with REST ? First of all, REST is a style of architecture so what really people mean is RESTful HTTP. As an architecture cannot be compared with a technology. But the term is so loosely used that they are used in place of each other commonly. Lets start with a one line definition for WebSocket

[02/24/2014]

During this blog post I will reveal the two most important reasons why I write automated tests... Automated tests prove that my code works in the future as well. Manual testing only proves that my code worked when I tested it. Automated tests document the expected behavior of my code. This is extremely valuable information for the developer who has to maintain the application...

[02/23/2014]

The JavaScript folks often abuse anonymous functions to create local scope. Like any other language feature, this can be abused, but in some contexts, local scoping is really awesome. Java also allows for local scoping, although until Java 8, this has been equally cumbersome...

[02/21/2014]

Jersey is the excellent Java JAX-RS specification reference implementation from Oracle. Last year, when we were starting to build RESTful backend web services for a high-volume website, we chose to use the JAX-RS API as our REST framework and Spring framework for dependency injection. Jersey was our JAX-RS implementation of choice...

[02/19/2014]

Ready to dive into the Internet of Things? Take the new, free, online course "Develop Java Embedded Applications Using a Raspberry Pi." The Oracle Learning Library has created this course which provides code, examples, and experts to teach you and answer your questions. Java experts Stephen Chin, Jim Weaver, Simon Ritter, Angela Caicedo, and Tom McGinn will lead you through basic exercises...

[02/18/2014]

The difference between Stress and Load Testing is already clearly defined by wikipedia. Stress testing (sometimes called torture testing) is a form of deliberately intense or thorough testing used to determine the stability of a given system or entity. It involves testing beyond normal operational capacity, often to a breaking point, in order to observe the results...

[02/17/2014]

Querydsl is a framework that allows us to create elegant, type-safe queries for a variety of different data-sources like Java Persistence API (JPA) entities, Java Data Objects (JDO), mongoDB with Morphia, SQL, Hibernate Search up to Lucene. In the following tutorial we

[02/13/2014]