Advanced JAVA Training Courses in Marathahalli bangalore

Category: Education

Presentation Description

Get contact details, Address, Latest Reviews & Ratings along with Photos, Maps for top Best Java Training Institutes for Java Courses in Marathahalli, Bangalore on First enquiry Visit: Contact: 8792462607


Presentation Transcript

slide 2:

There are many new features that have been added in java. There are major enhancement made in Java5 Java6 Java7 and Java8 like auto-boxing generics var- args java annotations enum premain method lambda expressions functional interface method references etc.

slide 3:

Java 8 provides following features for Java Programming: 1. Lambda expressions 2. Method references 3. Functional interfaces 4. Stream API 5. Default methods 6. Base64 Encode Decode 7. Static methods in interface 8. Optional class 9. Collectors class 10.ForEach method

slide 4:

11. Parallel array sorting 12. Nashorn JavaScript Engine 13. Parallel Array Sortin 14. Type and Repating Annotations 15. IO Enhancements 16. Concurrency Enhancement 17. JDBC Enhancements etc.

slide 5:

Lambda Expressions Lambda expression helps us to write our code in functional style. It provides a clear and concise way to implement SAM interfaceSingle Abstract Method by using an expression. It is very useful in collection library in which it helps to iterate filter and extract data. Method References Java 8 Method reference is used to refer method of functional interface . It is compact and easy form of lambda expression. Each time when you are using lambda expression to just referring a method you can replace your lambda expression with method reference.

slide 6:

Functional Interface An Interface that contains only one abstract method is known as functional interface. It can have any number of default and static methods. It can also declare methods of object class. Functional interfaces are also known as Single Abstract Method Interfaces SAM Interfaces. Optional Java introduced a new class Optional in Java 8. It is a public final class which is used to deal with NullPointerException in Java application. We must import java.util package to use this class. It provides methods to check the presence of value for particular variable.

slide 7:

for Each Java provides a new method for Each to iterate the elements. It is defined in Iterable and Stream interfaces. It is a default method defined in the Iterable interface. Collection classes which extends Iterable interface can use forEach method to iterate elements. This method takes a single parameter which is a functional interface. So you can pass lambda expression as an argument.

slide 8:

Date/Time API Java has introduced a new Date and Time API since Java 8. The java.time package contains Java 8 Date and Time classes. For more information and examples Default Methods Java provides a facility to create default methods inside the interface. Methods which are defined inside the interface and tagged with default keyword are known as default methods. These methods are non-abstract methods and can have method body.

slide 9:

Nashorn JavaScript Engine Nashorn is a JavaScript engine. It is used to execute JavaScript code dynamically at JVM Java Virtual Machine. Java provides a command-line tool jjs which is used to execute JavaScript code. You can execute JavaScript code by two ways: Using jjs command-line tool and By embedding into Java source code. For more information and examples. StringJoiner Java added a new final class StringJoiner in java.util package. It is used to construct a sequence of characters separated by a delimiter. Now you can create string by passing delimiters like comma hyphen- etc.

slide 10:

Collectors Collectors is a final class that extends Object class. It provides reduction operations such as accumulating elements into collections summarizing elements according to various criteria etc. For more information and examples. Stream API Java 8 java.util. Stream package consists of classes interfaces and an enum to allow functional-style operations on the elements. It performs lazy computation. So it executes only when it requires. Stream Filter Java stream provides a method filter to filter stream elements on the basis of given predicate. Suppose you want to get only even elements of your list you can do this easily with the help of filter method. This method takes predicate as an argument and returns a stream of resulted elements.

slide 11:

Java Base64 Encoding and Decoding Java provides a class Base64 to deal with encryption and decryption. You need to import java.util.Base64 class in your source file to use its methods. This class provides three different encoders and decoders to encrypt information at each level. Java Parallel Array Sorting Java provides a new additional feature in Arrays class which is used to sort array elements parallelly. The parallelSort method has added to java.util.Arrays class that uses the JSR 166 Fork/Join parallelism common pool to provide sorting of arrays. It is an overloaded method.

slide 12:

Java 8 Security Enhancements 1 The Java Secure Socket ExtensionJSSE provider enables the protocols Transport Layer Security TLS 1.1 and TLS 1.2 by default on the client side. 2 A improved method AccessController.doPrivileged has been added which enables code to assert a subset of its privileges without preventing the full traversal of the stack to check for other permissions. 3 Advanced Encryption Standard AES and Password-Based Encryption PBE algorithms such as PBEWithSHA256AndAES_128 and PBEWithSHA512AndAES_256 has been added to the SunJCE provider. 4 Java Secure Socket Extension SunJSSE has enabled Server Name Indication SNI extension for client applications by default in JDK 7 and JDK 8 supports the SNI extension for server applications. The SNI extension is a feature that extends the SSL/TLS protocols to indicate what server name the client is attempting to connect to during handshaking.

slide 13:

5 The SunJSSE is enhanced to support Authenticated Encryption with Associated Data AEAD algorithms. The Java Cryptography Extension SunJCE provider is enhanced to support AES/GCM/NoPadding cipher implementation as well as Galois/Counter Mode GCM algorithm parameters. 6 A new command flag -importpassword is added to the keytool utility. It is used to accept a password and store it securely as a secret key. Classes such as is added to support DKS keystore type. 7 In JDK 8 the cryptographic algorithms have been enhanced with the SHA-224 variant of the SHA-2 family of message-digest implementations. 8 Enhanced support for NSA Suite B Cryptography which includes: OID registration for NSA Suite B cryptography algorithms Support for 2048-bit DSA key pair generation and additional signature algorithms for 2048-bit DSA keys such as SHA224withDSA and SHA256withDSA.

slide 14:

9 SecureRandom class provides the generation of cryptographically strong random numbers which is used for private or public keys ciphers and signed messages. The getInstanceStrong method was introduced in JDK 8 which returns an instance of the strongest SecureRandom. It should be used when you need to create RSA private and public key. SecureRandom includes following other changes: Two new implementations has introduced for UNIX platforms which provide blocking and non-blocking behavior. 10 A new PKIXRevocationChecker class is included which checks the revocation status of certificates with the PKIX algorithm. It supports best effort checking end-entity certificate checking and mechanism-specific options. 11 The Public Key Cryptography Standards 11 PKCS has been expanded to include 64-bit supports for Windows. 12 Two new rcache types are added to Kerberos 5. Type none means no rcache at all and type dfl means the DFL style file-based rcache. Also the acceptor requested subkey is now supported.

authorStream Live Help