Can a method change the original values contained in an Array if we are passing it as a parameter to that method ?
Yes. This is because an Array is of reference type. When passing an array to a method, actually we are passing its reference and now the formal parameter holds the same reference as the actual variable. So changing value in either array will reflect in both places.
Read More..   [43 clicks]
Published under: SQL Server Interview Questions · · · ·