What is the data type we are using for storing different types of data in a single array?

Questions by vanig05

Showing Answers 1 - 6 of 6 Answers

rkbalag

  • Dec 5th, 2007
 

We can use Hashtable to store different types of data in a single array

Hashtable hash = new Hashtable();
hash.put("INT_OBJ",new Integer("1"));
hash.put("STR_OBJ",new String("A")); 
hash.put("BOL_OBJ",new BOOLEAN(true)); 

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions