Java 8 Learning (continuous update)

Source: Internet
Author: User

Before learning the new features of Java8, we briefly looked at the new features of the previous editions from Java5, which were summed up by others.

New features of Java5, Java6, Java7, Java8

http://blog.csdn.net/samjustin1/article/details/52268004

Where Java 7 4th introduced System.getjavaiotempdir () .... These methods are no longer available, with system.getproperties () to achieve the same goal.

For example, System.getuserdir () can be replaced with system.getproperties ("User.dir").

Map map = {name: "xxx", age:18};//not feasible

The author is a copy-paste party, it is estimated that these features have not been added.

Java8 new Features

Http://www.cnblogs.com/chengJAVA/p/6113649.html

1. function-type interface

2.Lambda expression

3. Enhanced interfaces (much like abstract classes)

4.stream stream operation (similar to Scala)

5.Io/nio improvements to the new API

6. Internationalization, date class of new API (said to be improved, not feel, it should be I use less)

The stream is designed so that it does not require all data to be transferred into memory at the same time (even without computation at all), so that it can handle streaming data that cannot be loaded into the computer's memory. But Java 8 can do some optimizations that the collection cannot do, for example, it can combine several operations on the same stream to iterate through the data only once, rather than having to traverse it many times at great cost. Even better, Java can automatically parallelize streaming operations (collections are not a good idea). ----"Java8 Combat"

Java 8 Learning (continuous update)

Related Article

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.