Hashing
Hashing is the transformation of a string of characters into a usually shorter fixed-length value or key that represents the original string. For example SHA-2 Hash of above statement will…
Weak Reference : An Object will not be garbage collected if one or more reference exits. This is not true always if the references are Weak Reference then its a…
Key Features Strings in switch Statement Multiple Exception Handling Try with Resources Java nio Package Binary Literals, underscore in literals Diamond Syntax Many others refer to Oracle Release note JAVA…
You might have seen in Java API many methods are using native keyword. Lets understand them. The native keyword is applied to a method to indicate that the method is…
Ant Script for JAVA Developers 1) Simple Ant Script for Clean , Compile and jar generation adding Manifest information to jar init called .. Delete All Class Files .. Delete…
A variable that is declared as final and not initialized is called a blank final variable. A blank final variable forces the constructors to initialize it. In other words The…
When an iterator is created, either it is directly created on the collection (Fail Fast), or created on a clone of that collection (Fail Safe).This brings below two types of…
Another way of initializing collections and objects in Java. This is rarely known concept of Java,although this type of initialization has been with java from many years. The technique/concept is called Double…
As the name specifies its a Hook provided by JVM to register a Thread when it shut down. i.e. piece of instructions that JVM should execute before going down. How…
Programming in Java doesn’t have to be dull and boring. In fact, it’s possible to have lots of fun while programming in Java. Lets use the Robot class to write…