Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaChamp question - incorrect answer?  RSS feed

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems like an incorrect answer in JavaChamp question:



The website indicates compilation fails at lines 2 and 5, while the correct answer should be it fails at 2 and 4.
 
Marshal
Posts: 5848
815
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are correct.
BTW, Line-5 may also be treated as uncompilable since the class CurrentAccount is not compilable
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!