Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!news-xxxfer.readnews.com!postnews.google.com!d12g2000vba.googlegroups.com!not-for-mail From: "giuseppe.on.usenet" Newsgroups: comp.lang.java.programmer Subject: Re: super Date: Sun, 18 Sep 2011 12:21:09 -0700 (PDT) Organization: http://groups.google.com Lines: 17 Message-ID: <797b5b56-9855-4ff1-a1e9-1eef2dcef7a8@d12g2000vba.googlegroups.com> References: <3e87dcf3-6842-41bf-8eb8-0c4181a178a9@k1g2000vbz.googlegroups.com> NNTP-Posting-Host: 62.123.12.178 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1316373794 17644 127.0.0.1 (18 Sep 2011 19:23:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 18 Sep 2011 19:23:14 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d12g2000vba.googlegroups.com; posting-host=62.123.12.178; posting-account=yPSY1QoAAACMZ51-SS0_t9poa1zrLE1H User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUARLECNK X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; PPC Mac OS X 10_5_8) AppleWebKit/534.50.2 (KHTML, like Gecko) Version/5.0.6 Safari/533.22.3,gzip(gfe) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8135 On 18 Set, 20:26, Andreas Leitgeb wrote: > I think the misunderstanding is far more basic. > > To giuseppe: > > In dir2.GrandChild's main, just remove the line, where you instantiate > Child, and leave the rest exactly as is. =A0Recompile & run it. =A0You'll > see that instantiating class Child (or not doing it) doesn't change > anything. What does this tell you? I am not the author :) I found that code in a certification study guide (the original question was: What will the output be?). Maybe they instantiated the Child object just to try to confuse the reader. Actually, I don't think the question was very simple, because you are not supposed to use a compiler during the exam.