What will be the data type for 10 January in array declaration...???? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What will be the data type for 10 January in array declaration...????

4th Dec 2019, 1:27 PM
Gyan prakash Mishra
2 Answers
0
Array is a homogeneous data type means it can store similar data values.. For ex: if you declare int array , then it can store only integer values. If you declare string array it can store string values.. So here in 10 January, if you want individually, you need a int array and a string array separately. Or else you can store in string array in the form of total string "10 January"..
4th Dec 2019, 2:02 PM
Jayakrishna 🇮🇳
0
by using array of java.util.Date
4th Dec 2019, 3:15 PM
Taste
Taste - avatar