what difference between PHP & Java
Printable View
what difference between PHP & Java
- PHP is a server side scripting language where as JAVA is a client side scripting language. In other words, PHP is only used as a server side language where java is both for server side and desktop programming language.
- Java is compiled and strongly typed language. On other hand, PHP is a dynamic typed language.
- Java programs tend to be built from a " program runs, stays running, processes request" kind of way, where as PHP application are built form a "run, handle the request, stop running" kind of way.
You are comparing two entirely different technologies. One is a programming language, the other is more of a script. It's like comparing the engines of an airplane and a helicopter. Both serve different purposes.
The main difference is Java is a compiled language whereas PHP is interpreted language.
-Java is fully object oriented language but PHP is not fully object oriented.
-Java is strongly typed language. You have to strictly define the type of data (i.e int, double, float etc.) you want to store in the variable but for PHP is dynamically typed.
-PHP is a scripting language but Java in not.
PHP-PHP is an open source, server-side, HTML embedded scripting language. It can basically perform any task that other CGI programs can, but it is mainly used to create dynamic Web pages. Its main advantage is that it is compatible with many types of databases. It is a server-side scripting language that has its main implementation in web development.
JAVA- Java is a programming language, which has been influenced by the C language. It derives much of its syntax from C and C++, however it has fewer low-level facilities than either. Java is a general-purpose programming language.Java was developed by James Gosling at Sun Microsystems and was released in 1995. It was originally released as a core component of Sun Microsystems' Java platform.
Java is a programming language, which has been influenced by the C language. It derives much of its syntax from C and C++, however it has fewer low-level facilities than either.
PHP is a server-side scripting language that has its main implementation in web development. However, it can be used as a general-purpose programming language.
Php is is a alround language with a wide variety of uses , mostly to do with databases and back end scripts . Php has a very patchy design , the language was developed with many issues but they keep patching them because its so effective at what it does people would rather push php along. WordPress is today's greatest influencer of php , it is because of WordPress that php has sealed its place on the web for a very long time to come.
Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere" ,meaning that compiled Java code can run on all platforms that support Java without the need for recompilation. Java applications are typically compiled to bytecode that can run on any Java virtual machine regardless of computer architecture.
PHP is a dynamic, interpreted scripting language while Java is a static, compiled programming language
Both of them are quite strong and good, But PHP is only used as a server-side language where Java is both for server-side and desktop programming language. Moreover, Java is compiled and strongly-typed language. PHP is faster than java.
Difference between Java and PHP is Java is the general purpose language while PHP is the programming and scripting language.
Java is a programming language, which has been influenced by the C language.
PHP is a server-side scripting language that has its main implementation in web development.
Java is compiled, type safe. PHP is scripting language with dynamic typing.
Java has broader uses such as Desktop and Android apps. PHP is mostly used for the web.
It isn't correct to compare Java to PHP. Since PHP is a server-side scripting language whereas Java is a general-purpose language. In other words, PHP is only used as a server-side language where Java is both for server-side and desktop programming language. Moreover, Java is compiled and strongly-typed language.
Java is compiled, type safe. PHP is scripting language with dynamic typing.
Java has broader uses such as Desktop and Android apps. PHP is mostly used for the web.
Java is aprogramming language, which has been influenced by the C language. It derives much of its syntax from C and C++, however it has fewer low-level facilities than either.
PHP is a server-side scripting language that has its main implementation in web development. However, it can be used as a general-purpose programming language.
Nice Copy and Pate Job, and I think you forgot to give the reference from where you copied this, ok, I do this for you https://www.cs.montana.edu/~tosun/phpvsjava.pdf