What are tuples? Ans. Tuple is a fixed-size collection that can have elements of either same or different data types. Similar to arrays, a user must have to specify the size of a tuple at the time of declaration. Tuples are allowed to hold up from 1 to 8 elements and if there are more than 8 elements, then the 8th element can be defined as another tuple. Tuples can be specified as parameter or return type of a method. - Study24x7
Social learning Network
28 Apr 2023 01:24 PM study24x7 study24x7

What are tuples? Ans. Tuple is a fixed-size collection that can have elements of either same or different data types. Similar to arrays, a user must have to specify the size of a tuple at the time of declaration. Tuples are allowed to hold up from 1 to 8 elements and if there ar...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles