title: Correct way to create private methods in an interface Java
body: <p>I'm working with a database and I create a public interface called Dao with extends from AutoCloseabe, so I have a class which implements this interface but I want to create some private methods there but they still need Autocloseable.
  So my question is, I can't create private methods in the interface without defining them in the interface. Which happens if I create a private method in the class but not overriding from Dao? They won't have autocloseable, will they?. And if not which solution can I implement?</p>