C
Clarence Blumstein
If you must choose one ,which one do you like it? Why?
Clarence Blumstein said:If you must choose one ,which one do you like it? Why?
If you must choose one ,which one do you like it? Why?
Clarence said:If you must choose one ,which one do you like it? Why?
Stefan said:Even the Java Language Specification itself is easier to
read than Eckel (and of course, much more correct):
Any local variable, formal method parameter or exception
handler parameter used but not declared in an inner class
must be declared final.
http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.1.3
It's worth pointing out that this only applies to local and anonymous
classes, since for other inner classes there's no way that a local variable,
formal method parameter or exception handler parameter would even be visible
to them.
Clarence said:If you must choose one ,which one do you like it? Why?
Eric said:And the way they're "used" while not visible is ...?
Mike Schilling said:It's worth pointing out that this only applies to local and anonymous
classes,
Effective Java ;-)
Because you can learn Java from the Sun/Oracle website tutorials. And
because it's the only one I still find useful of the many Java books I
have purchased.
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.
Does this book have official ebook? if not, how do I pay money if I
but it on their website?
Stefan said:Mike Schilling said: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.
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...
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.