In java we are not able to create an instance of an interface like this:
iJack obj = new iJack(); //iJack is an interface
However, I noticed that we can do this:
iJack obj;
What is the difference between the two?
In addition to that, I noticed that you can nest a class within an interface, how is this useful? I can not think of a practical purpose for this. Here is an example of what I am talking about:
public interface iJack {
public abstract class Jack_class {
}
}