in java Can we create an object of type Interface? Explain your answer. Solution No, we cannot create an instance of interface in java because interface contains only abstract methods (ie. methods which are only declared) and as abstract methods do not have a body (of implementation code), we cannot create an object of interface. Though we can create instance of the class implementing the interface. But we can refer to object that implements an interface. example, public interface Pet { } public class Dog implements A { } public static void main(String[] args) { Pet ob = new Dog(); //Pet test = new Pet(); // compilation error } Also, Anonymous classes can implement interfaces, and it is the only time a class implementing an interface without the \"implements\" keyword. It is possible to create Interface object with anonymous inner classes as shown below : interface Sample { public void display(); } class Demo { Sample p = new Sample() { public void display() { System.out.println(\"Interfce example.\"); } }; }.