Skip to main content

Posts

Showing posts with the label JAVA 8

Java 8 Unique features

Java 8 was released in March 2014 and it was great a update. Release Release date Highlights Java SE 8 2014-03-18 Initial release Java SE 8 Update 5 [252] 2014-04-15 Using " * " in  Caller-Allowable-Codebase  attribute; 11 bug fixes Java SE 8 Update 11 [253] 2014-07-15 Java Dependency Analysis Tool (jdeps); Java Control Panel option to disable sponsors; JAR file attribute – Entry-Point; JAXP processing limit property – maxElementDepth; 18 security bug fixes, [254]  15 bug fixes Java SE 8 Update 20 [255] 2014-08-19 669 bug fixes, [256]  JMC 5.4, String deduplication (disabled by default) Latest Java 8 version is Java SE 8 Update 181. Oracle decided to overhauled the java with new exciting features and these are : 1. forEach() method in Iterable interface : It is a new way to iterate over the collections (list, set, map etc.) 2. default and static methods in Interfaces : To provide the backward compatibility Java Introduced the default methods and it also help the prog...

Java Versions and their release dates

Java Versions and release dates: James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991. Java was originally designed for interactive television, but it was too advanced for the digital cable television industry at the time. The language was initially called Oak as an oak tree that stood outside Gosling's office. Later the project went by the name Green and was finally renamed Java, from a Java coffee beans Java is also an island. It was designed based C/C++-style syntax for easy understanding as C/C++ was very much popular at that time. Sun Microsystems released the first public implementation as Java 1.0 in 1996. They called as "Write Once, Run Anywhere" (WORA), providing no-cost run-times on popular platforms. JDK 1.0 (January 23, 1996) JDK 1.1 (February 19, 1997) J2SE 1.2 (December 8, 1998) J2SE 1.3 (May 8, 2000) J2SE 1.4 (February 6, 2002) J2SE 5.0 (September 30, 2004) Java SE 6 (December 11, 2006) Java SE 7 (July 28, 201...

Java : ClassNotFoundException vs NoClassDefFoundError

ClassNotFoundException is an exception that occurs when you try to load a class at run time using Class.forName() or loadClass() methods and mentioned classes are not found in the classpath. NoClassDefFoundError is an error that occurs when a particular class is present at compile time, but was missing at run time. The difference from the Java API Specifications is as follows. For ClassNotFoundException : Thrown when an application tries to load in a class through its string name using: The forName method in class Class. The findSystemClass method in class ClassLoader. The loadClass method in class ClassLoader. but no definition for the class with the specified name could be found. For NoClassDefFoundError : Thrown if the Java Virtual Machine or a ClassLoader instance tries to load in the definition of a class (as part of a normal method call or as part of creating a new instance using the new expression) and no definition of the class could be found. The searched-fo...