Suppose I have a Swings Java Application,
I set the min Heap is 64MB and max Heap 2GB,
when the user start the application, the log in screen
will be displayed, at this time
You can dispose of objects and suggest the garbage collector do its work, but if the GC does not feel it is necessary, the request will be ignored. So in summary, 'no'.
Note that memory assigned to Java apps. is set before the app. starts, and is not adjustable.