> I am also doing java and I am just wondering what its uses are in webdesign apart from game creation?
J2EE can be used for creating rich, easier to maintain, modular dynamic web applications. The advantage is that you don't need to learn a new language just to develop web applications. Your existing knowledge of java with a bit of practice will make you comfortable with the technology.
Java offers separation of the presentation, the business logic and the data access logic, a thing you won't see much in PHP built sites.
> It seems to slow to be used to create dynamic webpages
Slow? In what sense? Does this
site look slow to you? Look at the business world around you and you would find most of the financial, banking and business critical sites are made using Servlets / JSP / EJB's. Also there are a lot of mature frameworks for Java which facilitate rapid development, something you would not find for PHP.
Oh and BTW, MySQL is a database while Java is a programming language and yes, you can create
databases using Java.