A new array can be created by using two different ways in ruby and can contain different types of objects.