I think Java is a far more superior language than PHP. Java and Java related technologies can be used in any area of specialization. Be it web, application development, plug-in development etc.. It has got such numerous libraries, extensions and frameworks that it can be used for ideally every thing. Also Java is much more performance effective than PHP. Thats why may real-time systems use Java. But for web development, i think PHP is the best bet as it has a small learning curve.
if you want to build web application with small resource you have to try PHP, but if you want to build application for desktop you have to try java. java also can used for web application but you will need more resource.
I'd recommend C# over Java for desktop applications - providing the target OS is Windows. The languages are similar but C# is faster and easier to develop, in my opinion.
If you want to get into web development, why not forget about spaghetti code and go with Python? Flask is a really good microframework (http://flask.pocoo.org/)
Real time systems use assembly or C, not Java. I doubt that anyone has ever written a RTS in Java (except, maybe, as a classroom exercise).
PHP or Java both are programming language for web development. PHP is the update version then Java. To learn PHP, at first you have to know Java. Now, you say to me which one is better?
Try to learn both in a object oriented manner. Php is best for site designing an java is for applet,gaming and standalone.
hi both language is good.but java have many features. java is use for both web &window application. php is use only for web application.in java ejb concept is best. now a day's java is use in mobiles make android application. so java is the best language.
You are right saying. I think PHP is best choice for apps development. It is very easy to use and simple to learn which is also more popular for doing attractive web application today. It has great features and many users big fan of this language.
PHP on it's own does not compare to Java for web app development, unless you use Javascript in conjunction with PHP to provide that asynchronous and seamless element. i.e. stateless scripts aren't really web apps in my opinion.
PHP borrowed its object-oriented paradigm from Java, which is the standard implementation of an object-oriented language today. Both Java and PHP are open source and some programmers prefer to use an open source language for many reasons.