Ok, firstly you really should use code tags when posting code. Types, including interface types should start with a capital letter (i.e Sweety). You are defining in an interface a method called toString(), which ever Object will have. There is no need for the Class containing the main method to implement sweety. As to where the constructor comes from, my guess ...