how can I retrieve instantiated objects of particular class in java?
<p>For instance,</p>

<pre><code>// Object 1
SensorMeasurement tempSDSMInfo1 = new SensorMeasurement("temperatureMeasurement", tempSDStruct, "SensorDriver", "TemperatureSensor");

// Object 2
SensorMeasurement tempSDSMInfo2 = new SensorMeasurement("temperatureMeasurement", tempSDStruct, "SensorDriver", "TemperatureSensor");

//Object 3
SensorMeasurement tempSDSMInfo3 = new SensorMeasurement("temperatureMeasurement", tempSDStruct, "SensorDriver", "TemperatureSensor");
</code></pre>

<p>Now later in the  program , <strong>I want to retrieve all the  instantiated objects of a  particular class ?</strong>  </p>

<p><strong>I do not want to store them  in collection. Is there any other method?</strong></p>
