Forum Moderators: phranque
Or, if you had to choose between the two whitch would you choose?
One benefit of PHP is that it is (ironically) more portable than Java, since it's an interpreted language and nearly all hosts support it. To support Java, you need a JVM running and that adds extra complexity that many hosts don't want to bother with, unless you've got a dedicated package or some other setup that provides the JVM. Since PHP code is interpreted each time it loads it will never perform as well as Java or allow you to catch errors at compile time (there is no compile time), although there are various optimizing and caching mechanisms to help with performance.
Anyway, just some thoughts.
that's not an easy to answer that question. you find people which dislike php and ones which dislike java (like I strongly do).
for java: there a a lot of students learning java. indeed they may have no sense for programming but as long as they are able to catchup your clients deadlines you're free to go with them. just coders.
for php: as with java, there are a lot of hobby-programmers which just show that the language is useable for many things. it's more a language for the web-frontend of many different kind of applications and doing a great job.
for both i think it's hard to get valuable programmers.
anyway, java has a large amount of overhead so it might be just stupid to use it.
but all this is only about the language and has nothing to say about the two cms-es you'd like to choose between. which are they?
joomla has also some problems with the xhtml document structure even if some contributors want to see these limitations removed. because of this and some other signals i assume that the joomla codebase is not well done even if many people still tend to say it's easy to use. you should take a view into the source first and make your own impression.
for icms i even haven't viewed the source so i can not tell you something from that angle.
but anyway i think it's a matter what kind of features you need.
Of course if you are planning on hosting yourself or on a dedicated server then that is not an issue.
Java is more powerful in the hands of a good programmer.
To get the best choice, you have to ask yourself what are you going to be serving. If its just calling records from a small database(less than 1M records) and doing basic queries then PHP may be the way to go. If you really need high end threading, data manipulation, and true OOP then Java may be best.
Frankly, I would suspect that 99% of web apps could be handled by PHP with ease.