What is the difference between Object[] obj and Object obj[] in java? : <p>I wrote a code using two type of Object styles. Both are working properly. I just want to know what is the difference between these both types.</p>

<pre><code>PatientsTabData ob[] = {new PatientsTabData().SetPatientId(
                Integer.parseInt(String.valueOf(jsonObject.get("PatientId"))))
.SetRxId(Integer.parseInt(String.valueOf(jsonObject.get("TrackingNumber"))))};

PatientsTabData[] ob = {new PatientsTabData().SetPatientId(
                Integer.parseInt(String.valueOf(jsonObject.get("PatientId"))))
.SetRxId(Integer.parseInt(String.valueOf(jsonObject.get("TrackingNumber"))))};
</code></pre>

<p>Both types are working.</p>
