I would like to know if it is necessary to instantiate a java class in a variable to use only one of its methods. For example: Instead of using:
Clase variable = new Clase();
metodoMio(variable.procesarTexto("null"));
use:
metodoMio(new Clase().procesarTexto("null"));
Will it have an impact on the use of memory and the performance of my application?