title: Size of an object and a string in Java
body: <p>I was trying to find out efficient data types.
  I know int is 4 bytes and char is one byte. </p>
  
  <ol>
  <li>an object which contains five integers (4 * 5 = 20 bytes)</li>
  <li>a String object which has ten characters. ( Suppose it has 10 characters 10 * 1 = 10 bytes)</li>
  </ol>
  
  <p>Am I right?
  Which one do you think it is better?</p>