Website development in PHP and Java

What is difference between developing website using Java and PHP?

Questions by MagnaCarta

Showing Answers 1 - 5 of 5 Answers

We can use PHP and Java (good word - JSP - Java Server Pages) to make dynamic websites.

PHP is interpretor based while JSP is compiler based.
PHP is opensource JSP not

  Was this answer useful?  Yes

If your site is having much more dynamic content, you need to go for Java(JSP).
Otherwise (if your site having much more static info), you can go for PHP.

  Was this answer useful?  Yes

gmanon

  • Feb 2nd, 2010
 

Java is a precompiled language.  The Java Virtual Machine transform the source code into bycode.  PHP is source code that is processed by the server as a server module or CGI. 

PHP is mainly a Web Programming Language, Java is a multipurpose language.  It means the PHP is basically web based and Java can be used for desktop software, web, etc.

Java supports event listeners, while PHP does not.

PHP is faster than Java.

Java supports strong typing.

Java supports full OOP features while PHP only supports basic OOP features.

PHP is a quick way to do big jobs in the web.  It connects to databases, services etc, much easier than Java and it's very efficient. 

You need to write less code to do the same job in PHP than in Java.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions