The evolution of Java language

Time:2021-1-16

–Compiled from “Java core technology (Volume I) basic knowledge (the 11th edition of the original book)”

Version | year | new language features

1.0 | 1996 | language itself

1.1 | 1997 | internal class

1.2 | 1998 | strictfp modifier

1.3 | 2000 | none

1.4 | 2002 | assertion

5.0 | 2004 | universal type, “for each” loop, variable meta parameter, auto boxing, metadata, enumeration, static import

6 | 2006 | none

7 | 2011 | string based selection statement, diamond operator, binary literal quantity, exception handling enhancement

8 | 2014 | lambda expressions, interfaces with default methods, streams, and date / time libraries

9 | 2017 | module, other languages and class library enhancements

 

Recommended Today

SDS of redis data structure

SDS(simple dynamic string), simple dynamic string. S and it’s called hacking string. Where hack is stored is the length of the string and the remaining space in SDS. The implementation of SDS insds.cIn the middle. C language string uses a character array of length N + 1 to represent the string of length N, and […]