Govt. Exams
Entrance Exams
Both methods work correctly. IsNullOrEmpty checks for null or empty, IsNullOrWhiteSpace also considers whitespace.
int[][] is a two-dimensional jagged array where each element is an array of integers of potentially different lengths.
'internal' modifier allows access within the same assembly but not from external assemblies.
The correct syntax for nullable types is 'type?' where ? makes the value type nullable, allowing null values.
sbyte range is -128 to 127. When overflow occurs without checked context, it wraps around to 127.
int is a value type. When y = x, a copy of x's value is assigned to y. Changing y doesn't affect x.
using serves two purposes: importing namespaces and automatically disposing resources through IDisposable pattern.
Jagged arrays use [][] syntax. [,] is for multidimensional arrays. int[][] allows arrays of varying lengths.
C# allows comparison between int and double. 5 and 5.0 are numerically equal, so == returns True.
protected members are accessible from the same class and derived classes, but not from outside the class hierarchy.