Welcome to my blog !


Static Import feature tutorials in java with examples

March 5, 2012 ·  3 min read

Static Import in java 5:- static import is java language feature introduced in java version 5 alias code name as tiger version. This was introduced to simplify the access of static variables and static members without using classname.Before static import is introduced, we have normal import statetements for every java class to use the methods and classes with using class name How the java code looks like before static import feature is introduced?...

Solution for java.lang.StackOverflowError exception in java

February 29, 2012 ·  2 min read

StackOverflowError is one of frequent exception/issue in java projects. This exceptions should not be caught by the programmer but thrown by Java virtual machine at runtime. whenever this exception is thrown, application stopped its execution java stackoverflowerror class overview:- StackOverflowError extends java.lang.VirtualMachineError class which in turns extends java.lang.Error. so what is java.lang?Error?. Error class extends Throwable class specifies unusual errors that application unable to catch these exceptions. These exceptions are not programming related exceptions but thrown by java virtual machine....

How to inject enum object of java 5 in spring framework?

February 27, 2012 ·  2 min read

Inject Enum of java in Spring Framework:- Spring framework is a popular opensource framework developing applications in java. Enum is java enumeration keyword introduced in java 5 features. usually, In Spring configuration file, we will inject different custom classes as well as predefined classes like Integer, String. But injecting enum class in spring container is different as if we not correctly inject, we will end of with exceptions like “org.springframework.beans.TypeMismatchException: Failed to convert property value of type"....

How to solve IllegalArgumentException in java with examples

February 15, 2012 ·  2 min read

Fix for IllegalArgumentException in java:- IllegalArgumentException is one of frequent exceptions occured in java programming language. This exception extends RunTimeException class. These are also called UncheckedExceptions and need not to be handled in java code for this exceptions occurs at runtime. Exceptions in java are used to indicate that there is an error in your code. IllegalArgumentException is good way of handling in the code.This exception occurs when caller calling method with incorrect arugment types for the methods....

Deque examples with tutorials in java

February 10, 2012 ·  5 min read

Deque Object in java:- Deque is abbreviated as double-ended queue like a normal queue, can store the collection of objects. It is one of the collections class introduced in Java 6. Why deque is different from other collection classes? the answer is, in the deque, we can insert and deletes the objects from both starts, end of the collection. whereas normal collection inserts/deletes are happening at last only. Deque is interface introduced in java 6 java....