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


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

Re: Need help,homework

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Robert Klemme <shortcutter@googlemail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Need help,homework
Date Fri, 14 Dec 2012 08:03:58 +0100
Lines 25
Message-ID <aj01auFganpU4@mid.individual.net> (permalink)
References <ka5ua2$2k8$1@dont-email.me> <udrfc8t6icar3vihtetsc1vrqss25m473l@4ax.com> <50c93283$0$285$14726298@news.sunsite.dk>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding quoted-printable
X-Trace individual.net bgn+BuYCvqkd0Uc/xOYlyQJUFxLxv0P1Yjep/MtUMNkjEE6p79g848DaUWEMsLdc0=
Cancel-Lock sha1:AdG8kXzt1ns592/H8t7h/eF9KTo=
User-Agent Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0
In-Reply-To <50c93283$0$285$14726298@news.sunsite.dk>
Xref csiph.com comp.lang.java.programmer:20318

Show key headers only | View raw


On 12/13/2012 02:42 AM, Arne Vajhøj wrote:
> On 12/11/2012 9:37 PM, Roedy Green wrote:

>> http://mindprod.com/jgloss/interface.html
>
> #The throws clauses about Exceptions in the interface’s methods must
> #exactly match the throws clauses of the implementing methods.
>
> No.
>
> The implementing method can not throws an exception not in
> the interface, but it does not need to throws all exceptions
> in the interface.

<nitpick>The implementing class can choose to declare a more restrictive 
throws clause, which means, sub classes of declared exceptions in the 
interface as well as a shorter throws clause.  And it is allowed to 
throw all exceptions which are mentioned in the throws clause or sub 
classes of them.</nitpick>

Kind regards

	robert

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


Thread

Need help,homework theunknowable@lavabit.com - 2012-12-11 00:21 +0000
  Re: Need help,homework Lew <lewbloch@gmail.com> - 2012-12-10 17:05 -0800
  Re: Need help,homework Roedy Green <see_website@mindprod.com.invalid> - 2012-12-11 18:37 -0800
    Re: Need help,homework Lew <lewbloch@gmail.com> - 2012-12-11 19:30 -0800
    Re: Need help,homework Arne Vajhøj <arne@vajhoej.dk> - 2012-12-12 20:42 -0500
      Re: Need help,homework Robert Klemme <shortcutter@googlemail.com> - 2012-12-14 08:03 +0100
        Re: Need help,homework Arne Vajhøj <arne@vajhoej.dk> - 2012-12-14 20:59 -0500

csiph-web