Unexpected compilation error

The public class name is same as filename but this error is shown. I have no clue why is that?!

You have many duplicate classes of PortfolioManagerApplication.
Kindly delete all other duplicate classes

Yeah Sorry. I realised that once I have gone through the error. Thanks though.

Hey, you might have used git merge tool.

Git merge tool is a utility to resolve merge conflicts efficiently. You can otherwise resolve them manually. When you run the merge tool git will create multiple instances of the file. Each containing different code. You just need to delete the irrelevant files.

To learn more about merge tool you can refer to this doc -