File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Mock Exam Errata and the fly likes K&B book  Console example Scjp6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "K&B book  Console example Scjp6" Watch "K&B book  Console example Scjp6" New topic

K&B book Console example Scjp6

sumit kothalikar
Ranch Hand

Joined: Apr 15, 2010
Posts: 91

K & B book page no 457-458

Here at line # 4variable name is used but it is not declared when we declare it(name variable) as String pw returns the password we have entered
Is there any correction in the above code

Thanks & Regards
Sumit Kothalikar
Arjun Srivastava
Ranch Hand

Joined: Jun 23, 2010
Posts: 432

yeah i think it's a mistake ,they forgot to declare name.

also they forgot to reply here.

SCJP 6 | FB : Java Certifications-Help. | India Against Corruption
Bert Bates

Joined: Oct 14, 2002
Posts: 8898
Hi Guys,

We appreciate you posting your doubts and possible erratas here at JavaRanch.

In general we ask you to first post on the appropriate forum, like SCJP. Then, once everyone has agreed that there's an error, you can add the error to the error list.

We never committed to responding to threads in this forum

Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
I agree. Here's the link:
subject: K&B book Console example Scjp6
It's not a secret anymore!