Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #29147

Re: Common errors in Java books

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Common errors in Java books
Date 2014-07-20 23:00 -0700
Organization Canadian Mind Products
Message-ID <esaps9lmmq30f341r0sk70ufjluf8uuugu@4ax.com> (permalink)
References <errors-20140720231517@ram.dialup.fu-berlin.de>

Show all headers | View raw


On 20 Jul 2014 21:21:08 GMT, ram@zedat.fu-berlin.de (Stefan Ram)
wrote, quoted or indirectly quoted someone who said :

>      »Every statement ends with a semicolon.«
>
>      »To use a library, one has to use the import statement«
>      (these are two errors in one sentence!)
>
>      »static inner class«

I'll bite:

What statement does not require a semicolon?
Are you counting class and method definitions as statements?

You can obviously fully quality. But what is the other error?  Do you
not consider import a statement?

You can have a nested static class, but a nested inner class implies a
link to the outer object, so it cannot be static.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
Science is what we understand well enough to explain to a computer.
Art is everything else we do. 
~ Donald Ervin Knuth (born: 1938-01-10 age: 76)

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: Common errors in Java books Roedy Green <see_website@mindprod.com.invalid> - 2014-07-20 23:00 -0700
  Re: Common errors in Java books Gene Wirchenko <genew@telus.net> - 2014-07-21 10:18 -0700
    Re: Common errors in Java books Roedy Green <see_website@mindprod.com.invalid> - 2014-07-21 12:32 -0700
      Re: Common errors in Java books Arne Vajhøj <arne@vajhoej.dk> - 2014-07-21 22:01 -0400
        Re: Common errors in Java books Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-07-22 07:43 -0400
          Re: Common errors in Java books "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-07-22 14:08 +0100
            Re: Common errors in Java books Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-07-22 14:53 -0400
              Re: Common errors in Java books Roedy Green <see_website@mindprod.com.invalid> - 2014-07-23 09:44 -0700

csiph-web