title: JavaScript-like Object data type in Java?
body: <p>I am experienced in JavaScript, but new to Java. In JavaScript there are "object" data types where a given variable essentially has sub-variables with their own unique values, for example:</p>
  
  <pre><code>var car = {type:"Fiat", model:500, color:"white"};
  </code></pre>
  
  <p>It is almost like an array, but not quite (JavaScript has arrays too). I am wondering if the same type of thing exists in Java? If so, how would I declare the same thing in Java? Based on my searches I can't find an object data type, but thought maybe there was something similar?</p>