Mukesh Kumar
Can you insert different datatypes in an array
By Mukesh Kumar in .NET on Aug 21 2017
  • Uzma Khan
    Oct, 2018 1

    Yes , you can use ArrayList for this.for exampleArrayList arryList1 = new ArrayList(); arryList1.Add(1); arryList1.Add("Two"); arryList1.Add(3); arryList1.Add(4.5);

    • 0
  • Rushyanth Reddy
    Aug, 2018 22

    yes you can with ArrayList

    • 0
  • Krunal Lokhande
    Aug, 2018 18

    You can use ArrayList to have array with multiple data types. This is deprecated though, you can use generic list List which uses less memory and stable.

    • 0
  • Shiva Mogilicharla
    May, 2018 25

    No

    • 0
  • Mukesh Kumar
    Aug, 2017 21

    yes by the use of object array object[] arr=new object[10];

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS