Creating objects in Java question
<p>In PHP, to create a new object you would do something like this, <code>$dog = new Dog;</code>. But in Java you would do something like, <code>Dog x = new Dog;</code> or <code>Dog x;</code>. Could someone explain why you need to say the Dog class in front of the variable?</p>
