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 forces the constructors to initialize it. In other words The…
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…
Widely used statement in Java and interestingly its one of the most number of times compiled statement in the history of java, also commonly asked interview question. Here we will try…
Let’s say that it takes you exactly one minute to read through this post. In that time, over 6,600 photos will be uploaded to Flickr, about 70 new domains will…