View Full Version : what difference between php & Java
sapnajha
12-08-2017, 08:40 AM
what difference between PHP & Java
padmadevi
12-09-2017, 03:14 PM
- 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.
rohit
12-11-2017, 01:25 AM
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.
dennis123
12-11-2017, 01:45 AM
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.
saurabh mathur
12-15-2017, 12:30 AM
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.
friendhrm
12-15-2017, 01:01 AM
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.
risen29
12-15-2017, 04:51 PM
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.
najishahmed
12-18-2017, 03:21 AM
PHP is a dynamic, interpreted scripting language while Java is a static, compiled programming language
robinss
12-23-2017, 01:20 AM
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.
sadianisar
01-05-2018, 07:27 AM
Difference between Java and PHP is Java is the general purpose language while PHP is the programming and scripting language.
davidsmith21
06-11-2018, 03:59 AM
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.
arianagrand
06-12-2018, 09:51 AM
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.
emmaaqueenn
07-17-2018, 03:37 AM
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.
burling
07-18-2018, 07:37 AM
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.
Nirala
07-19-2018, 04:33 AM
- 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.
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
emmaaqueenn
07-28-2018, 01:33 PM
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.
GuruJi
07-30-2018, 02:22 AM
These both are the totally different technologies you are comparing. If you Google it, you can get the very good stuff about this.
simicartan
07-31-2018, 07:14 AM
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.
emmaaqueenn
08-08-2018, 01:16 PM
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.
sadia
09-21-2018, 10:45 AM
Some differences between Java and PHP:
1. Java is strong and statically typed, while PHP is rather weakly and dynamically typed.
2. Java is compiled to bytecode, PHP is interpreted.
3. PHP methods and functions allow for optional parameters. In Java, a separate method must be defined for each possible list of parameters.
4. PHP requires an explicit $this be used when an object calls its own methods. Java does not.
5. Constructors in Java are named after the class name. In PHP they are called __construct()
jeevanrahi
09-24-2018, 04:20 AM
PHP is a scripting language where as JAVA is a client side programming language. In other words, PHP is only used as a server side language where java is both for server side and desktop programming language.
Intellyhost
09-24-2018, 12:03 PM
PHP is one of the most mature, ubiquitous server-side scripts on the web. Java is a general-purpose, compiled programming language
davidweb09
10-07-2018, 08:44 AM
PHP language is used to design & develop dynamic websites while Java for software. https://internetmarketingexpertblog.blogspot.com/2015/10/how-business-directory-listings-help-in.html
Powered by vBulletin® Version 4.2.4 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.