Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error (?) in Java2Certification Study guide

 
Anna Dow
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all,
just discovered an error in the famous 'Java 2 Certification Study Guide' (Roberts, heller, Ernest). They say that application's main method may be

The fact is that it cannot (I run test and got an error from vm launcher). So I wonder : can we believe this book in general?
 
geetha nagarajan
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are u referring to Q3 at the end of chapter 1.If so,pl.check : the answers r given as B,D only.The option ur referring to is E.
I have RHE too.It doesn't give
public static int main(String [] arg) ,as a valid declaration.The return type for main() has to be void.
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the above reply, it doesn't look like this is really an error. However, I believe that book is pretty sound, factually, so I think you'd be pretty well off believing what it says.
Corey
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the errata page. This is listed.
"Page 716
3. Which of the following signatures are valid for the main() method entry point of an application? Answer: B and D"

This book can definitely be trusted. It was co-written by one of the authors of the exam.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My copy of the book also says B,D,and E are the correct answers. That's why you need to check the errata pages.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic