The ReDim statement is used to resize or expand a dynamic array that has already been declared officially with empty parentheses using a Private, Public, or Dim declaration (which are without dimension subscripts). Just use ReDim assertion repeatedly to change the array's number of elements as well as dimensions in an array. However, except if the array is part of a Variant, it is not possible to construct one data type array and then use ReDim to change to a different data type.   If the array is kept in a Variant, the elements' types can be altered using an As type clause, except if the Preserve keyword is used, where in, in that case no data type modifications are permitted.  Here's an example of how to use the ReDim keyword:  Dim DemoArray() As Integer ' Declaring a dynamic array.
Redim DemoArray(10) ' Allocating 10 elements.
For J = 1 To 10 ' Looping for 10 times.
DemoArray(J) = J ' Initializing the DemoArray.
Next J In the above example, the ReDim command is used to allocate and reallocate data storage for dynamic array variables. It is assumed that the Option Base is 1. The ReDim keyword would be only applied to arrays and can be utilized to alter the size of one or more aspects of a previously defined array. Redim will free up space or help in adding elements to something like an array as needed.   These are some VB.net OOPs interview questions that mostly come in the interviews.