Does an standard static inner builder class which builds an immutable instance of Outer class can be a participant of escape analysis ? Will the instance of static inner class Builder be in stack ?
If for every request this builder.build() is being invoked then i believe every time 2 instances will be created (inner builder and outer class) and will be allocated in heap only and not stack. is my understanding correct ?