From: Mike Schilling on
Stefan Ram wrote:
> "Mike Schilling" <mscottschilling(a)hotmail.com> writes:
>> Stefan Ram wrote:
>>> Any local variable, formal method parameter or exception
>>> handler parameter used but not declared in an inner class
>>> must be declared final.
>> It's worth pointing out that this only applies to local and anonymous
>> classes,
>
> class Main
> { public static void main( final java.lang.String[] args )
> { class Local
> { class Inner
> { Inner(){ java.lang.System.out.println( args ); }}}}}
>
> JLS: �A local class is a nested class (�8) that is not a
> member of any class and that has a name.� ���
>
> �Inner� is a member of �Local�, so �Inner� is not a local
> class nor an anonymous class, yet the above applies.

Ah, so it does. I was trying to come up with this situation, but couldn't
quite picture it. Thanks.


From: Arne Vajhøj on
On 30-04-2010 01:39, Thufir wrote:
> On Thu, 29 Apr 2010 19:45:14 +0530, Abu Yahya wrote:
>> Clarence Blumstein wrote:
>>> If you must choose one ,which one do you like it? Why?
>>
>> Whatever do you, don't go for Head First Java, unless you are only a
>> hobbyist and are ready to throw the book out of sight after you read it.
>> It's full of slangy terms that barely help you learn Java and make sure
>> you professor laughs at you in your viva. Go for Core Java by Cay
>> Horstmann - it's among the most comprehensive books.
>
> Contrast:
>
> "Welcome to the Core Java Web Page!
>
> Core Java by Cay S. Horstmann and Gary Cornell is a book in the Java
> series of Sun Microsystems Press , published by Prentice-Hall . The book
> is aimed at experienced programmers who want to learn how to write useful
> Java applications and applets. No hype, no toy code, no language
> lawyering, just solid facts and in-depth research to help you write real
> programs."
>
> with:
>
> Head first:
>
> ...
>
> "The latest research in cognitive science, neurobiology, and educational
> psychology shows that learning at the deeper levels takes a lot more than
> text on a page. Actively combining words and pictures not only helps in
> understanding the subject, but in remembering it. According to some
> studies, an engaging, entertaining, image-rich, conversational approach
> actually teaches the subject better. Head First Java puts these theories
> into practice with a vengeance."
>
> Apples and oranges. One is aimed at *experienced* programmers...

And that is important.

There is a big difference between books for experienced and books
for beginners.

The first need to focus on accuracy and completeness.

The second most focus on the communication.

And in many ways the second is the most difficult. It is easy
to show a lot of complex stuff about a specific framework to
a bunch of experienced programmers. It is bloody hard to
explain both programming and a specific programming language
to absolute beginners.

Arne