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
Joined: Jul 13, 2001
Posts: 94
posted
0
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
Joined: Dec 20, 2001
Posts: 3271
posted
0
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
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.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Thomas Paul
mister krabs
Ranch Hand
Joined: May 05, 2000
Posts: 13974
posted
0
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.