Skip to main content
Java News Feed

Java News

Peter Verhas: We hate/love lambda
April 16, 2014 -

[article] We have the long waited lambda feature in Java 8. And we love it. We love to use it at places where we used anonymous class. We love to use it where we used some looping construct. Now we use functional interfaces instead and thus we get faster performance using parallel streams and we get more readable code. The time is a short period of euphoria to be replaced by the several, low orbiting WTFs reviewing out others code. I write nice readable code but I continually experience ugly, unreadable and wrong code. And I expect lambda will make it...

Tal Weiss: Java 8 LongAdders: The Right Way To Manage Concurrent Counters
April 16, 2014 -

[article] I just lOvE new toys, and Java 8 has a bunch of them. This time around I want to talk about one of my favourites – concurrent adders. This is a new set of classes for managing counters written and read by multiple threads. The new API promises significant performance gains, while still keeping things simple and straightforward....

Diana Kupfer: Java 8 support in Eclipse
April 16, 2014 -

[article] In this interview (originally published in German in Eclipse Magazine), Martin Lippert, Principal Software Engineer at Pivotal Inc talks about the latest Java release, and the ups, downs, and aspirations of Eclipse IDE development. JAX: What are the highlights of Java 8 for you? Lippert: The special highlight for me in Java 8 is certainly the lambda expressions. With them, code can be written simpler and clearer and many of the troublesome Inner classes are finally gone...

Dirk Lemmermann: JAVAFX TIP 3: USE CALLBACK INTERFACE
April 15, 2014 -

[article] As a UI framework developer it is part of my job to provide ways to customize the appearance and behavior of my controls. In many cases this is done by allowing the framework user to register a factory on a control. In the past I would have created a factory interface for this and provided one or more default implementations within the framework. These things are done differently in JavaFX and...

Dustin Marx: Programmatic Access to Sizes of Java Primitive Types
April 15, 2014 -

[article] One of the first things many developers new to Java learn about is Java's basic primitive data types, their fixed (platform independent) sizes (measured in bits or bytes in terms of two's complement), and their ranges (all numeric types in Java are signed). There are many good online resources that list these characteristics and some of these resources are the Java Tutorial lesson on Primitive Data Types, The Eight Data Types of Java, Java's Primitive Data Types, and Java Basic Data Types...

Editor`s Blog

If you missed the Java 8 Launch Live Webcast, or if you'd like to re-review the webcast, or if you'd like to view more in depth presentations about specific areas of Java 8 (including Java SE 8, Java SE Embedded 8, Java ME 8, and the Internet of Things and The Enterprise) -- then, you'll want to visit the Java 8 Launch site...

All Spotlights

Spotlights

WamSys AB, located in Gothenburg, Sweden, focuses on developing products with Oracle DB and the NetBeans Platform. In particular, the NetBeans Platform is used as the basis of their Mozart Platform, which provides generic modules for custom Swing components, including a table component with support for grouping, "frozen" rows and columns, and built-in aggregates. Furthermore, the Mozart...

The latest update to the Java EE 7 Tutorial is now public. Update 7.0.4 includes many bug fixes, both in the examples and in the documentation. Although most of these fixes were small, taken together they significantly improve the quality of the tutorial. Kin-man Chung conducted a thorough review and provided several corrections and good suggestions that we incorporated to greatly improve...

Use stream operations to express sophisticated data processing queries. What would you do without collections? Nearly every Java application makes and processes collections. They are fundamental to many programming tasks: they let you group and process data. For example...

While working on FlexGanttFX I had to deal a lot with the JavaFX Canvas node. I am using it to render activities on a timeline. Each row in the Gantt chart is a Canvas node. The user has the option to resize each row individually. So I had to figure out the best way to resize a canvas, which out-of-the-box is not resizable. The listing below shows how...

Welcome

Weekly Statistics

867,236

members

2,390

projects