There is no optimisation that you can do that way.
There may be a slight difference, and it's not certain which one would better, as that could change from one system to another. It's mostly depending on what system you are running it on, as it depends on how the JIT compiler optimises the code.
The first option might save some stack space by reusing the variable, but on the other hand it might actually use more stack space. By using the variable in more code, it's less likely that the JIT compiler can optimise it to use a register instead of stack space.
Either way the difference would hardly even be possible to measure, so it's not even worth it to try to optimise the code that way.
You should use the variables so that it's clear what the intention of the code is. There may be a point in using separate variables as they have references to separate objects.
You should not be afraid to use more local variables. As long as you are not doing some recursive stuff so that you risk causing a stack overflow, allocating more local variables doesn't cost anything at all. As the local variables are allocated by simply moving the stack pointer, it literally takes no time at all to make that space larger.