+ 2

What are some Key Features of Java 8 i can Learn

I heard using Java 8 features is one of the best for Java programmer?

26th Jan 2019, 4:23 PM
Akinyele Isaac
Akinyele Isaac - avatar
6 Answers
+ 9
With no doubts, Java 8 release is the greatest thing in the Java world since Java 5 (released quite a while ago, back in 2004). It brings tons of new features to the Java as a language, its compiler, libraries, tools and the JVM (Java virtual machine) itself. New Features in Java language: • Lambdas and Functional Interfaces • Interface’s Default and Static Methods • Method References • Repeating annotations • Better Type Inference • Extended Annotations Support
28th Jan 2019, 7:44 AM
Danijel Ivanović
Danijel Ivanović - avatar
+ 2
* High Performance: Java code is compiled into bytecode which is highly optimized by the Java compiler, so that the Java virtual machine (JVM) can execute Java applications at full speed. In addition, compute-intensive code can be re-written in native code and interfaced with Java platform via Java Native Interface (JNI) thus improve the performance. * Multithreaded: The Java platform is designed with multithreading capabilities built into the language. That means you can build applications with many concurrent threads of activity, resulting in highly interactive and responsive applications. * Platform Independence: Java code is compiled into intermediate format (bytecode), which can be executed on any systems for which Java virtual machine is ported. That means you can write a Java program once and run it on Windows, Mac, Linux or Solaris without re-compiling. Thus the slogan “Write once, run anywhere” of Java.
27th Jan 2019, 3:47 PM
HAS|B
HAS|B - avatar
+ 2
New in Java 8 is a concept called lambda expressions. Makes code much more readable by eliminating a lot of the “ceremony” around looping through and transforming collections.
27th Jan 2019, 5:14 PM
Wayne
+ 1
In short, Java is a simple, robust and secure programming language. Here are the key features of Java: * Simple: The Java language is easy to learn. Java code is easy to read and write. * Familiar: Java is similar to C/C++ but it removes the drawbacks and complexities of C/C++ like pointers and multiple inheritances. So if you have background in C/C++, you will find Java familiar and easy to learn. * Object-Oriented: Unlike C++ which is semi object-oriented, Java is a fully object-oriented programming language. It has all OOP features such as abstraction, encapsulation, inheritance and polymorphism. * Robust: With automatic garbage collection and simple memory management model (no pointers like C/C++), plus language features like generics, try-with-resources,… Java guides programmer toward reliable programming habits for creating highly reliable applications. * Secure: The Java platform is designed with security features built into the language and runtime system such as static type-checking at compile time and runtime checking (security manager), which let you creating applications that can’t be invaded from outside. You never hear about viruses attacking Java applications.
27th Jan 2019, 3:47 PM
HAS|B
HAS|B - avatar
0
Thank you
7th Mar 2023, 11:38 AM
Shri
Shri - avatar