DXC Technology Interview Question

How do you approach refactoring Java applications for improved performance and scalability?