Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    Senior Member
    Join Date
    Jul 2014
    Location
    India
    Posts
    100

    what difference between php & Java

    what difference between PHP & Java

  2. #2
    Registered User
    Join Date
    Nov 2017
    Location
    Hyderabad
    Posts
    59
    - 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.

  3. #3
    Registered User
    Join Date
    Apr 2014
    Location
    india
    Posts
    407
    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.

  4. #4
    Senior Member dennis123's Avatar
    Join Date
    Apr 2013
    Location
    Bangalore
    Posts
    3,627
    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.

  5. #5
    Registered User
    Join Date
    Sep 2017
    Location
    ghaziabad
    Posts
    280
    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.

  6. #6
    Registered User friendhrm's Avatar
    Join Date
    Feb 2017
    Posts
    212
    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.

  7. #7
    Registered User
    Join Date
    Aug 2017
    Location
    south africa
    Posts
    30
    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.

  8. #8
    Senior Member
    Join Date
    Feb 2017
    Posts
    160
    PHP is a dynamic, interpreted scripting language while Java is a static, compiled programming language

  9. #9
    Junior Member
    Join Date
    Jul 2017
    Posts
    28
    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.

  10. #10
    Senior Member sadianisar's Avatar
    Join Date
    May 2016
    Posts
    2,781
    Difference between Java and PHP is Java is the general purpose language while PHP is the programming and scripting language.

  11. #11
    Registered User
    Join Date
    Sep 2017
    Posts
    1,192
    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.

  12. #12
    Registered User
    Join Date
    Feb 2014
    Location
    delhi
    Posts
    572
    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.

  13. #13
    Senior Member
    Join Date
    Jun 2018
    Location
    australia
    Posts
    165
    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.

  14. #14
    Registered User
    Join Date
    Aug 2017
    Location
    United States
    Posts
    148
    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.

  15. #15
    Senior Member
    Join Date
    Mar 2017
    Posts
    422
    Quote Originally Posted by padmadevi View Post
    - 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

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.