-
WeakReference and WeakHashMap in Java
Weak Reference : An Object will not be garbage collected if one or more reference exits. This is not true…
-
JAVA 7 Features
Key Features Strings in switch Statement Multiple Exception Handling Try with Resources Java nio Package Binary Literals, underscore in literals…
-
Native Keyword / Calling C Program From Java
You might have seen in Java API many methods are using native keyword. Lets understand them. The native keyword is…
-
Ant Build Tool : Quick Notes
Ant Script for JAVA Developers 1) Simple Ant Script for Clean , Compile and jar generation adding Manifest information to…
-
Blank final field in Java
A variable that is declared as final and not initialized is called a blank final variable. A blank final variable…
-
Fail Fast vs Fail Safe Iterator in Java
When an iterator is created, either it is directly created on the collection (Fail Fast), or created on a clone…
-
Double Brace Initialization In Java
Another way of initializing collections and objects in Java. This is rarely known concept of Java,although this type of initialization has been…
-
JVM Shutdown Hook
As the name specifies its a Hook provided by JVM to register a Thread when it shut down. i.e. piece…
-
Use of Robot Class
Programming in Java doesn’t have to be dull and boring. In fact, it’s possible to have lots of fun while…