This tutorial shows you how to use Java Platform, Standard Edition 8 (Java SE 8) and NetBeans 8 to create a link checker with the Thread class. For small applications, you add a thread defined by its Runnable interface or by the thread itself, as defined by a Thread object. For large applications, you separate thread management and creation from the rest of the application. Objects that encapsulate these functions are known as executors.
HTTP is the foundation for communication of data on the web. The proliferation of network-enabled applications has increased the use of the HTTP protocol beyond user-driven web browsers.
The HTTPClient class helps build HTTP-aware client applications, such as web browsers and web service clients for distributed communication.
The URL class is a pointer to a resource on the web. A resource can be something as simple as a file or a directory, or it can be a reference to a more complicated object, such as a query to a database or to a search engine.
The HttpURLConnection class helps establish an HTTP connection between the HTTPClient and server.
In client/server applications, the server provides the service and the client uses that service. Communication takes place over the TCP/IP network, where a client program and a server program establish a connection with one another. Each program binds a socket at the end of the connection. This tutorial shows you how to use Java Platform, Standard Edition 8 (Java SE 8) and NetBeans 8 for socket programming over TCP/IP networks.
Prior to Java SE 8, interfaces in Java could contain only method declarations and no implementations, and any nonabstract class implementing the interface had to provide the implementation. This limitation made it almost impossible to extend the existing interfaces and APIs. To overcome this limitation, a new concept, called default methods, is introduced in Java SE 8. The default methods are fully implemented methods in an interface, and they are declared by using the keyword default. Because the default methods have some default implementation, they help extend the interfaces without breaking the existing code.
default
This tutorial covers how to configure a Raspberry Pi as a development platform for the JavaFX platform.
This is the Japanese translation of this tutorial (in English). In this tutorial, you create and deploy an application that leverages the open source PrimeFaces JavaServer Faces (JSF) component suite library. JSF was designed to allow developers to create new components while leveraging the JSF life cycle, managed beans, and expression language. As a result, simply by adding a third-party library to your project, you can create a completely different look and feel and add functionality beyond the core JSF libraries.The NetBeans integrated development environment (IDE) supports PrimeFaces out of the box. It is easy to create, deploy, and test applications that use the component suite directly with a local Oracle WebLogic Server instance and remotely with Oracle Cloud.
This tutorial covers how to create binary WebSocket connections with Java Platform, Enterprise Edition 7 (Java EE 7) and JavaFX.
This series is an introduction to the new Java Mission Control and Flight Recorder tools included with Java starting with Java 7 u40. This video provides an overview of the tools and an introduction to the series.
This tutorial covers how to generate JavaScript Object Notation (JSON) data by using the object model and the streaming model. It also demonstrates how to consume the generated JSON using a JavaScript client. Java EE 7 introduces the JSON Processing API, which provides a standard API to parse and generate JSON so that the applications can rely upon a portable API.
This series includes an introductory video to Java SE 8 Lambda, tutorials, and other articles.
This tutorial and video series shows you how to create an application that uses the WebSocket API for real-time communication between a client and a server.
This tutorial shows you how to create an application that uses the WebSocket API for real-time communication between a client and a server.
In this tutorial, you create and deploy an application that leverages the open source PrimeFaces JavaServer Faces (JSF) component suite library. JSF was designed to allow developers to create new components while leveraging the JSF life cycle, managed beans, and expression language. As a result, simply by adding a third-party library to your project, you can create a completely different look and feel and add functionality beyond the core JSF libraries.The NetBeans integrated development environment (IDE) supports PrimeFaces out of the box. It is easy to create, deploy, and test applications that use the component suite directly with a local Oracle WebLogic Server instance and remotely with Oracle Cloud.
Lambda expressions are a new and important feature included in Java SE 8. They provide a clear and concise way to represent one method interface using an expression. Lambda expressions also improve the Collection libraries making it easier to iterate through, filter, and extract data from a Collection. In addition, new concurrency features improve performance in multicore environments.
Collection
This Oracle by Example (OBE) provides an introduction to lambda expressions included in Java SE 8. An introduction to anonymous inner functions is provided, followed by a discussions of functional interfaces and the new lambda syntax. Then, examples of common usage patterns before and after lambda expressions are shown.
The next section reviews a common search use case and how Java code can be improved with the inclusion of lambda expressions. In addition, some of the common functional interfaces, Predicate and Function, provided in java.util.function are shown in action.
Predicate
Function
java.util.function
The OBE finishes up with a review of how the Java collection has been updated with lambda expressions.
This multi-part series introduces you to the Java EE 6 Contexts and Dependency Injection feature.