JAXB Tutorial in Java

In this tutorial we will learn what is the significance of  JAXB in Java. JAXB  stands for Java Architecture for XML Binding, which is using to convert java object to/from XML Marshalling: JAXB provides support to convert java object to XML. Unmarshalling: JAXB provides support to convert XML to a JAVA Object. Let’s run a small […]

ANT

Tutorial – How To Install Ant in Windows.

In this tutorial we will learn how to install Apache Ant 1.9.4 in windows 7 , Please have a look in to below steps. Techs and Tools Used in this tutorial : JDK 1.6 Ant 1.9.4 Windows 7 1. Install the Java (here I am using Java 1.6) and set the Windows environment variable ‘JAVA_HOME ‘ like […]

apache-maven

Tutorial – How To Install Maven in Windows

In this tutorial we will learn how to install Apache Maven 3.2.3 in windows 7 , Please have a look in to below steps. Techs and Tools Used in this tutorial : JDK 1.6 Maven 3.2.3 Windows 7   1. Install the Java (here I am using Java 1.6) and set the Windows environment variable ‘JAVA_HOME ‘ […]

springIDE

How Add/Install Spring IDE to Eclipse

In this tutorial we will lean how to add or install Spring IDE to Eclipse. Once we installed the spring plugin we can develope spring based applications in easy way. Here are the steps how to install. 1 . Go to Help –>Eclipse Marketplace and type ‘Spring ide’ in the search text field, it show as below. […]

Abstract Factory Design Pattern Tutorial

In this tutorial we will learn how Abstract Factory Design Pattern works and how to create objects based on the user’s input. Basically this pattern create “factory of factories ” , each factory is responsible to create specific object based on the string passed in the program. Have a look in to the below example. In […]

Overriding Tutorial

Rule for overriding: 1) In overriding method signature must be matched in both super and sub class. 2) Co-variant return type: Child class method return type should need not be same as super class method return type. Its child classes are allowed. Example:

This is valid from java 1.5

Co-variant return type rule is […]

OverLoading Tutorial

You might face questions about Overloading  in most of the Java interviews. Overloading is nothing but implementing  ‘n’ of methods with the same name in a Java class, but they must have different method signature. What is method signature in Java ? In java, method signature is as follows.

Note: Return type doesn’t include […]

Factory Design Pattern Tutorial

In my previous “Singleton Design Pattern” tutorial we got to know how to create only one instance of a class in the context. Now we will see how “Factory pattern” works . This design pattern is using in most of the software projects. This design pattern will explains us how exactly will create an object based […]