TypeScript 2.4 with this version that functions as a JavaScript superset that can be used for optional static typing, interfaces, and classes
Angular 5 comes with build optimizer which is a part of the platform's command like a tool.
HTTP Request Simplified
Optimization with HttpClient Feature
Includes Animation Package
Internationalized Date & Currency
Angular 2 VS Angular 4
Angular 2
Angular 4
Size and Speed
Applications built on Angular 2 are bulky in size with moderate speed.
With building application on Angular 4 it will be of less space consuming and faster than Angular 2.
Animation Package
Animation was under and part of main core “@angular/core” with if you use it or not animation is going to be part of production bundles.
Here Animation is altogether separate package and it can be referred as“@angular/platform-browser/animations” with this animation would not be part of production bundle if not used.
View Engine
Here traditional mode is available where we have compilation during runtime and not build time so error occurred can only be seen during runtime.
With apply of AoT(Ahead of time) compilation mode compilation is done during build time and JS code is generated with certain changes can be been seen in reduction of size up to 60% in most cases resulting in production bundle file size reduction by hundreds of KB.
Template
In Angular 2 normal template tag are used
Now with the recent Angular 4 it has its own template tag called as the “<ng-template>”. If you miss this tag representation then you will get warnings for the same.
Router
In Angular 2 interface syntaxes were used “params” and “queryParams”
New interface “paramMap” and “queryParamMap” is added for use which also helps to represent the parameters of a URL.
Pipes
There was no provision of “Pipes” in Angular 2.
In Angular 4, introduction of the concept of “Pipes” occurred due to which uppercasing the first letter of the word becomes automatically possible.
Angular JS VS Angular 2
Angular JS
Angular 2
Released by Google in the year 2010.
Released in Sept 2016.
JavaScript-based framework for creating SPA.
Complete re-write of AngularJS version.
Still supported but no longer will be developed.
It's updated version regularly released because of Semantic Versioning.
The architecture of AngularJS is based on MVC.
The architecture of Angular 2 is based on service/controller.
AngularJS was not developed with a mobile base in mind.
Angular 2 is a mobile-oriented framework.
AngularJS code can write by using only ES5, ES6, and Dart.
We can use ES5, ES6, Typescript to write an Angular 2 code.
Based on controllers whose scope is now over.
Nowadays, the controllers are replaced by components, and Angular two is completely component based.
Factory, service, provider, value and constant are used for services
The class is the only method to define services in Angular2
Run on only client-side
Runs on client-side & server-side
ng-app and angular bootstrap function are used to initialize
bootstrapmodule() function is used to initialize
Java versions wise features for Java 1 to 12
Java 12 Features
Collectors.teeing() in Stream API : Merge two Collections result
String API Changes :
Files.mismatch(Path, Path) : to compare the contents of two files to determine whether there is a mismatch between them" and can be used to determine "whether two files are equal
Compact Number Formatting
Support for Unicode 11
Switch Expressions (Preview)
Java 11 Features
HTTP Client API
Launch Single-File Programs Without Compilation
String API Changes
Collection.toArray(IntFunction)
Files.readString() and Files.writeString()
Optional.isEmpty()
Java 10 Features
JEP 286: Local Variable Type Inference
JEP 322: Time-Based Release Versioning
JEP 304: Garbage-Collector Interface
JEP 307: Parallel Full GC for G1
JEP 316: Heap Allocation on Alternative Memory Devices
JEP 296: Consolidate the JDK Forest into a Single Repository
JEP 310: Application Class-Data Sharing
JEP 314: Additional Unicode Language-Tag Extensions
JEP 319: Root Certificates
JEP 317: Experimental Java-Based JIT Compiler
JEP 312: Thread-Local Handshakes
JEP 313: Remove the Native-Header Generation Tool
New Added APIs and Options
Removed APIs and Options
Java 9 Features
Java platform module system
Interface Private Methods
HTTP 2 Client
JShell – REPL Tool
Platform and JVM Logging
Process API Updates
Collection API Updates
Improvements in Stream API
Multi-Release JAR Files
@Deprecated Tag Changes
Stack Walking
Java Docs Updates
Miscellaneous Other Features
Java 8 Features
Code name culture is dropped. Included features were:
Lambda expression
Stream API
Functional interface and default methods
Optionals
Nashorn – JavaScript runtime which allows developers to embed JavaScript code within applications
Annotation on Java Types
Unsigned Integer Arithmetic
Repeating annotations
New Date and Time API
Statically-linked JNI libraries
Launch JavaFX applications from jar files
Remove the permanent generation from GC
Java SE 7 Features
JVM support for dynamic languages
Compressed 64-bit pointers
Strings in switch
Automatic resource management in try-statement
The diamond operator
Simplified varargs method declaration
Binary integer literals
Underscores in numeric literals
Improved exception handling
ForkJoin Framework
NIO 2.0 having support for multiple file systems, file metadata and symbolic links
WatchService
Timsort is used to sort collections and arrays of objects instead of merge sort
APIs for the graphics features
Support for new network protocols, including SCTP and Sockets Direct Protocol
Java SE 6 Features
Scripting Language Support
Performance improvements
JAX-WS
JDBC 4.0
Java Compiler API
JAXB 2.0 and StAX parser
Pluggable annotations
New GC algorithms
J2SE 5.0 Features
Generics
Annotations
Autoboxing/unboxing
Enumerations
Varargs
Enhanced for each loop
Static imports
New concurrency utilities in java.util.concurrent
Scanner class for parsing data from various input streams and buffers.
J2SE 1.4 Features
assert keyword
Regular expressions
Exception chaining
Internet Protocol version 6 (IPv6) support
New I/O; NIO
Logging API
Image I/O API
Integrated XML parser and XSLT processor (JAXP)
Integrated security and cryptography extensions (JCE, JSSE, JAAS)
Java Web Start
Preferences API (java.util.prefs)
J2SE 1.3 Features
HotSpot JVM
Java Naming and Directory Interface (JNDI)
Java Platform Debugger Architecture (JPDA)
JavaSound
Synthetic proxy classes
J2SE 1.2 Features
strictfp keyword
Swing graphical API
Sun’s JVM was equipped with a JIT compiler for the first time
Java plug-in
Collections framework
JDK 1 Features
AWT event model
Inner classes
JavaBeans
JDBC
RMI
Reflection which supported Introspection only, no modification at runtime was possible.