is there a way to add a default constructor to an interface
问题 With default methods now added to Java 8, is there any way to create a default constructor? I've tried: public interface KadContent<T> { public default KadContent() { } ... Getting the error <identifier> expected from Netbeans Why Needed? I'm using Gson to serialize the objects and getting the "unable to invoke no-args constructor .." error and I do know that I can resolve this problem using Gson's InstanceCreator. But is there a way to create a default Constructor? Update I've found the