title: Storing  multiple datatypes inside a single two dimensional array
body: <p>I have a need to store multiple datatypes(like int or string mostly) inside a two dimensional array. Using <code>Object[][]</code> does solve the problem. But is it a good way to do so ??</p>
  
  <p>How does the <code>Object[][]</code> array then reserve the heap space ? I mean, in accordance with which datatype? Does it leads to any wastage of resources ?</p>
  
  <p>I was trying to do something like this:-</p>
  
  <p><code>Object[][] dataToBeWritten={ {"Pami",34,45},
                                  {"Ron","x",""},
                                  {"spider","x",""}
                                 };</code></p>
  
  <p><strong>Edit</strong>: You may suggest any better alternatives also if there exists any..</p>