Java Constructor and Methods - Quiz

  • A void atnyla() {} throws IOException
  • B void atnyla() throws IOException{}
  • C void atnyla() throw IOException{}
  • D void atnyla(void) throws IOException{}
  • A At line 1, constructor Tester must be marked public like its class
  • B At line 2, constructor call
  • C At line 3, compilation error, ambiguity problem, compiler can't determine whether a constructor
  • D At line 4