Java Language

Java language news, information, and how-to advice

scripting

Oracle to release 115 security patches

Oracle plans to release 115 security patches on Tuesday, for vulnerabilities affecting a wide array of its products, including its flagship database, Java SE, Fusion Middleware and business applications.


Python bumps off Java as top learning language

Python's simpler syntax and ability to scale up for enterprise development have made it the preferred language choice for learning to code.

Custom Cassandra data types

Learn to create and then use custom Cassandra Query Language data types in this quick tutorial from Dustin Marx.

Next generation Project Valhalla proposed

Proposed by Brian Goetz, Project Valhalla would provide long-term structure and support for evolving the Java language and platform. Voting by current OpenJDK members closes on July 7.

Java Q&A: The ultimate superclass, Part 3

This post completes a three-part series in which I present and answer questions about Object and its methods.

Java incubator to explore technologies for Java 10 and beyond

Proposed by Brian Goetz on the openjdk mailing list, Project Valhalla would explore and incubate long-term improvements to the Java language.

elipse ide

Eclipse Luna picks up Java 8, PHP, C/C++ support

Eclipse IDE's annual release adds Java 8 support, enhanced C/C++ and PHP tools, and support for the Paho platform.

Can TDD factions agree to disagree?

The #isTDDDead debate might be over but history suggests the fallout has just begun. Or at least that's what Uncle Bob says.

java gears

Project Panama builds a bridge between Java and C/C++

Project Panama would provide a native interconnect between code managed by the JVM and APIs for non-Java libraries, including C, C++, Windows, Linux, and Solaris APIs.

project coin

Java 101: The next generation: The essential Java language features tour, Part 4

Project Coin was the Java 7 language update that emphasized small changes with a big impact. Get a primer on automatic resource management with try-with-resources, then zip through three more JDK 7 updates: switch-on-string,...

Java 8 StampedLocks vs. ReadWriteLocks and Synchronized

StampedLock, new in JDK 8, employs a set of algorithms and memory fencing features that are meant make this read-write lock faster and more robust than ever. Does it deliver on its promise?

scripting

One now, two later: Groovy updates add Java 8 support

New Groovy 2.3 release supports Java 8, but developers must wait for the functional interfaces that will support lambda expressions in Groovy 3.0.

Java 8's new Optional class: What's the point?

Java programming blogger Hugues Johnson instigates a debate about the new Optional class in Java 8, and whether its monadic operators (like flatMap) are worth all the fuss.

steamy java

A case for keeping primitives in Java

Primitives have been controversial since the early days of Java, and rumor has it that Oracle is considering dropping them in a future version of the JDK. But John Moore argues that Java needs primitives, especially for applications...

Heroku joins other PaaS providers in supporting PHP

Facebook's HipHop VM for PHP was one factor driving Heroku to add support for PHP as a first-class citizen in its mix of languages.

Move over, Old Man Ruby -- your Java moment has arrived

History repeats itself, as Ruby's whiz kids find themselves lagging behind the same innovation train that once outran Java. Now can we all get back to coding, please?

java

Do more with less: Lambda expressions in Java 8

Decide for yourself whether Java 8's new functional syntax is worth learning, with this quick primer on using lambda expressions to iterate through, filter, and extract data in Java Collections.

What would you do to improve dynamic proxies?

Java's chief language architect wants to know: What would you do to improve dynamic proxies in the Java language?

javascript

Nashorn: JavaScript made great in Java 8

JavaScript on the JVM is better and faster but not always friendlier with Nashorn, the rebuilt JavaScript interpreter. Martin Heller takes the new Rhino's two command-line script runners for a test drive.

Load More