Java 1.8 Features

Source: Internet
Author: User

Statement: The material used in this column is written by the VIP students of the Kay Academy, who has the right to be anonymous and has the final right to interpret the article; The Edith Academy is designed to promote students to learn from each other on the basis of public notes.

Java 1.8 Features:

Idea:
: https://www.jetbrains.com/idea/
The installation process, for example, how many bits of a computer are loaded:

Introducing JDK

The name of the project and the path of the project storage

Set Code font Size

Jdk1.8 Effects:
A long integer can be assigned in this way

Interface can also write implementation method, it can not only apply for a static method, but also can apply for an instance method, but only the default, is the new effect of java1.8

Lambda expression
Shorthand for nameless classes
Write a nameless class to the Hello interface implementation, all know that you are new is Hello, but also to rewrite the Method2 method

New writing you do not need new, do not rewrite the method, directly write a (), which has been implemented, but there can only be one method in the interface

You can also write this

Concise notation, how to pass values, such as:

You can also do an addition operation in a simple way.

Java 1.8 Features

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.