What is the Spring Framework

As Spring states, it focuses on the plumbing of enterprise applications.

The initiative was originated based on the versions of Java EE. Java EE defined a set of standards to work with Java in an Enterprise environment. The strategy was to provide configuration and libraries that are common to most applications, especially huge and distributed applications (no trivial ones). 

Continue reading “What is the Spring Framework”

Which are the new features of Java 8?

This article lists the main features added in Java 8 and their uses. like

  •  interfaces
    • default methods
    • static methods
  • forEach() method in iterable interface (and Consumers)
  • Lambda expressions
    • double colon : Method reference operator
    • functional interfaces
  • Java Stream API
  • Improvements in Collection API
  • Java Time API
  • Improvements in Concurrency API
  • Java IO
  • Core API
    • withInitial(Supplier supplier) in ThreadLocal static method to create instances.
    • default and static methods for Comparator interface
      • natural ordering
      • reverse order
      • more…
    • min(), max() and sum() methods in Integer, Long and Double wrapper classes.
    • logicalAnd(), logicalOr() and logicalXor() methods in Boolean class.
    • ZipFile.stream() method
      • to get an ordered Stream over the ZIP file entries.
      • Entries appear in the Stream in the order they appear in the central directory of the ZIP file.
    • New utility methods in Math class.
      • exact(), addExact(),substractExact(), incrementExact(), decrementExact(), multipyExact(), negateExact()
      • floorDiv(), modeDiv(), nextDown()
    • jjs command is added to invoke Nashorn Engine.
    • jdeps command is added to analyze class files
    • remove of JDBC-ODBC Bridge
    • remove of PermGen memory space
  • Nashorn
  • Repeating annotations
  • Statically-linked JNI libraries
  • Built-in Functional Interfaces
    • Predicates
    • Functions
    • Suppliers
    • Consumers
    • Comparators
    • Optionals

Continue reading “Which are the new features of Java 8?”