Hi I want to change my carrier from Php to Java. I have 2 years of experience in php web development like wordpress, joomla tools. There after I changed company there on my company request, I learnt java on my own by seeing tutorials. They assigned me spring project I have done. Now I want to shift to java completely because as a php developer I am not getting high salaries. I have interest in java too. Can anyone suggest me tips to get excellence in java.

You get excellent by writing lots of code. There's no other way.
If your Java is good enough you could join an open source project on GitHub or source forge etc. If you're not ready for that yet, then practice using the suggested small projects for learners that you can find all over the web. If you write a small project you can post your code here and people will give you feedback on what you did and how it can be improved.
Good luck!
James

Thank you very much for you advise.