WHAT IS WITH IOC AND WITHOUT IOC IN ADVANCE JAVA

THE IOC STANDS FOR INVERSION OF CONTROL.

With he help of small program u will get to know where to use WITH IOC and where to use WITHOUT IOC

The program is of Spell Checker WITH IOC is given below:

public class TextEditor {

private IocSpellChecker checker;

public TextEditor() {}

public TextEditor(IocSpellChecker checker) {

this.checker = checker;

}

}

The program is of Spell Checker WITHOUT IOC is given below:

public class TextEditor {

private SpellChecker checker;

public TextEditor() {

this.checker = new SpellChecker();
}
}

TextEditor tel = new TextEditor();

By this two programs u see the differences between this two programs.

This small program will help in your exam to write for minimal marks.

4 comments on “WHAT IS WITH IOC AND WITHOUT IOC IN ADVANCE JAVA”

Leave A Reply

Your email address will not be published. Required fields are marked *