The Java Tutorials are continuously updated to keep up with changes to the Java Platform and to incorporate feedback from our readers. This release of the tutorial coincides with the release of JDK 8. See What’s New in JDK 8 for more information about new features in this release, which includes the following:
- Lambda expressions enable you to treat functionality as a method argument, or code as data. Lambda expressions let you express instances of single-method interfaces (referred to as functional interfaces) more compactly.
- Default methods are methods in an interface that have an implementation. They enable new functionality to be added to the interfaces of libraries and ensure binary compatibility with code written for older versions of those interfaces.
- Aggregate operations enable you to perform functional-style operations on streams of elements, in particular, bulk operations on collections, such as sequential or parallel map-reduce transformations.
- Date-Time APIs enable you to represent dates and times and manipulate date and time values. They support the International Organization for Standardization (ISO) calendar system as well as other commonly used global calendars.
- Type annotations can be used in conjunction with pluggable type systems for improved type checking, and repeating annotations enable you to apply the same annotation to a declaration or type use.
Apart from fixing typos and errors, this update includes also includes the following:
- The Security trail has been restructured; find security information about applets and Java Web Start applications in the Java Applets lesson.
PermissionsJAR file manifest attribute is required regardless of security level setting. SeeEnhancing Security with Manifest Attributes.
- The JDBC Basics lesson has been updated so that it is compatible with Java DB 10.10, the latest version that JDK 8 currently supports. This includes adding that
DERBYis a valid option for the
PARAMETER STYLEprocedure element for passing parameters to a stored procedure. See Creating Stored Procedures in Java DB with SQL Scripts or JDBC API.
Trails Covering the Basics
These trails are available in book form as The Java Tutorial, Fifth Edition. To buy this book, refer to the box to the right.
- Getting Started — An introduction to Java technology and lessons on installing Java development software and using it to create a simple program.
- Learning the Java Language — Lessons describing the essential concepts and features of the Java Programming Language.
- Essential Java Classes — Lessons on exceptions, basic input/output, concurrency, regular expressions, and the platform environment.
- Collections — Lessons on using and extending the Java Collections Framework.
- Date-Time APIs — How to use the java.time pages to write date and time code.
- Deployment — How to package applications and applets using JAR files, and deploy them using Java Web Start and Java Plug-in.
- Preparation for Java Programming Language Certification — List of available training and tutorial resources.
Creating Graphical User Interfaces
- Creating a GUI with Swing — A comprehensive introduction to GUI creation on the Java platform.
- Creating a JavaFX GUI — A collection of JavaFX tutorials.
Specialized Trails and Lessons
These trails and lessons are only available as web pages.
- Custom Networking — An introduction to the Java platform’s powerful networking features.
- The Extension Mechanism — How to make custom APIs available to all applications running on the Java platform.
- Full-Screen Exclusive Mode API — How to write applications that more fully utilize the user’s graphics hardware.
- Generics — An enhancement to the type system that supports operations on objects of various types while providing compile-time type safety. Note that this lesson is for advanced users. TheJava Language trail contains a Generics lesson that is suitable for beginners.
- Internationalization — An introduction to designing software so that it can be easily adapted (localized) to various languages and regions.
- JavaBeans — The Java platform’s component technology.
- JDBC Database Access — Introduces an API for connectivity between the Java applications and a wide range of databases and data sources.
- JMX— Java Management Extensions provides a standard way of managing resources such as applications, devices, and services.
- JNDI— Java Naming and Directory Interface enables accessing the Naming and Directory Service such as DNS and LDAP.
- JAXP — Introduces the Java API for XML Processing (JAXP) technology.
- JAXB — Introduces the Java architecture for XML Binding (JAXB) technology.
- RMI — The Remote Method Invocation API allows an object to invoke methods of an object running on another Java Virtual Machine.
- Reflection — An API that represents (“reflects”) the classes, interfaces, and objects in the current Java Virtual Machine.
- Security — Java platform features that help protect applications from malicious software.
- Sound — An API for playing sound data from applications.
- 2D Graphics — How to display and print 2D graphics in applications.
- Sockets Direct Protocol — How to enable the Sockets Direct Protocol to take advantage of InfiniBand.