I had a question regarding when an object that has been created locally within a method call will be garbage collected. I know we can't force GC, but is it safe to assume that usually a locally created object is up for collection as soon as you return from the method call?
yes you can safely assume, as soon as the object is out of scope. it is ready to be garbage collected. but don't assume that it will be done immediately. JVM is very clever. it takes care of everything.
Java Strength is not its language. Java's strength is JVM.