I am pretty sure I have read in O'Reilly Series that if there are no references pointing to an object, that object is gets Garbage Collected.
I have this example code from a different book I am reading:
So a new FlowLayout object is being created without a reference to it.Code:
setLayout( new FlowLayout() )
How is this possible ? How can I send commands to this new FlowLayout object if I ever require to ?