Re: Java exceptions and function overriding.

From: Tor Iver Wilhelmsen (tor.iver.wilhelmsen_at_broadpark.no)
Date: 09/01/04


Date: 01 Sep 2004 17:42:25 +0200

Babu Kalakrishnan <k.a.l.a@sankya.com> writes:

> Refer to the Java Language Specification Second Edition - section 11 for the
> full rationale behind why designers of the Java language chose to bifurcate
> exceptions into two types.

The C# language is strangely schizophrenic this way: The designers
decided you don't need to declare ANY exception throws, very nice of
them. (In effect, all exceptions are RuntimeExceptions.)

However, the language is more stringent than Java in other respects,
like explicit method "override"/"new" keywords, no switch fallthrough
etc.



Relevant Pages

  • Re: performance
    ... efficient language and still have an inefficient system. ... > Even on these super performant silicons, some kernel code and device drivers ... > exceptions. ... > relates to the efficiency/performance of the libraries ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Please explain the meaning of stealing a ref
    ... points of connotation as well as denotation in phrasing, and language ... clearer to _other_ readers, ... No, the use of the word 'exceptions' is anything but unreasonable, ... "Owning a reference" means being ...
    (comp.lang.python)
  • Re: performance
    ... > for kernel mode device drivers, while it's much easier to use C++ they ... > exceptions. ... ** I don't confuse language and policies, ... template libraries and no C++ exceptions. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: OT: Requesting C advice
    ... language designers made the language ... Every compiler I've used compiles C to native machine code for the ... libraries was not pleasant. ...
    (Fedora)
  • Re: [announcement] SYSAPI and SYSSVC for Windows
    ... Ada has its own concept. ... I know no language which ... But there are also numerous problems with exceptions in Ada. ... > supporting such languages as Ada. ...
    (comp.lang.ada)