If I created an Instance of a class how long does the Object live for and what does its life cycle depend on?
For example I have classA which I instantiate in my main class like so:
classA ca = new classA();
Does this object last as long as the runtime?
well, It depends on how long the object have a reference associated to itself(read about type of ref for detail). for ex.
Now your first object is eligible for garbage collection and will be destroyed in the nextGC cycle.