F
Flip
I'm reading the O'Reilly's Progamming C# book and I have a question about
array bounds checking. On page 174, near the top, they show an example
where c# does indeed to array bounds checking cause the example shows a
System.IndexOutOfRangeException being thrown. However, in the very next
section (Jagged arrays) they have warning section that says "Java
programmers take note: While Java does bounds checking on array use, C# does
not." Huh? I hope you can see my confusion, in one case, it's clear C#
does cause it's throwing an exception, but yet at the bottom of the page it
says C# doesn't do it. Which is right?
Thanks.
array bounds checking. On page 174, near the top, they show an example
where c# does indeed to array bounds checking cause the example shows a
System.IndexOutOfRangeException being thrown. However, in the very next
section (Jagged arrays) they have warning section that says "Java
programmers take note: While Java does bounds checking on array use, C# does
not." Huh? I hope you can see my confusion, in one case, it's clear C#
does cause it's throwing an exception, but yet at the bottom of the page it
says C# doesn't do it. Which is right?
Thanks.