What are tuples?
Tuple is a fixed-size collection that can have elements of either similar or different data types. Same to arrays, a user must have to specify the size of a tuple at the time of declaration. Tuples are permitted to hold up from 1 to 8 elements and if there are more than 8 elements, then the 8th element can be explained as another tuple. Tuples can be specified as parameter or return type of a method.