Yes. You can hire dedicated Java developers and change them mid-way through the project as needed. However, keep in mind that this may delay the project as the newly hired developers may take time to get accustomed to the new project.