How java programing is more secure than PHP..?

7 replies
How java programing is more secure than PHP..? Please tell me anyone
#java #php #programing #secure
  • Profile picture of the author bitsnaps
    Hi there,
    I'm java,php programmer and i have been coding more than 7 years now.
    Personally I don't believe on "secure programming language" because security is developer's responsibility no the language, although this last one can provide more security features, this is what people say about java, it is generally characterized as secure language, specially if you build/use frameworks made on top of security layer, php has a lot of frameworks with special security care, but nothing really secure if you set password to admin or 123456
    Regards
    {{ DiscussionBoard.errors[11034671].message }}
  • Profile picture of the author Rewbert
    Banned
    As previous posted pointed out, a lot of the responsibility lies on the developer. If an exploit is made it is 999 times out of a 1000 not related to a language-specific flaw, but related to the program itself.
    Don't look for flaws in the programming language, look for flaws in the code you write.

    Also, Java and PHP are two very different languages, used for vastly different purposes. It's hard to compare one to the other.

    Robert
    {{ DiscussionBoard.errors[11035876].message }}
    • Profile picture of the author DavieVBanks
      Originally Posted by Rewbert View Post


      Also, Java and PHP are two very different languages, used for vastly different purposes. It's hard to compare one to the other.

      Robert
      As Robert states they are two very different languages. PHP is a server-side scripting language designed primarily for web development. While Java is a general-purpose computer programming language that is concurrent, class-based, and specifically designed to have as few implementation dependencies as possible. It is intended to allow application developers to write once and run anywhere. In other words you can build stand alone applications that with the java virtual machine can run on practically any operating system.

      Yes Php and Java are not like comparing apples to oranges. But like Apples to Potatoes. LOL
      {{ DiscussionBoard.errors[11050120].message }}
  • Profile picture of the author JohnAdam1
    Any language can be used to create a project. Whether it is java, PHP or .Net. But only developing an application is not enough. The developers have to write additional code to secure the applications from security vulnerabilities like cross-site-scripting, SQL injection and Man-in-the-Middle attack. There are variety of tools in the market that can be used to test the applications for vulnerabilities.
    {{ DiscussionBoard.errors[11036350].message }}
  • Profile picture of the author Tahreem Saeed
    In terms of architecture (i.e., if you do not leave your doors open intentionally), I think Java is the most secure followed by .Net (which simply inherits all Windows related security issues through no fault of its own) and followed by PHP (being an interpreted scripting language leaves a lot of room for security issues).
    Any compiled language (Java, .Net, C, etc.) will always score higher than an interpreted scripting language when it comes to security.
    Signature

    Creative Designer and Developer !

    {{ DiscussionBoard.errors[11037472].message }}
  • Profile picture of the author brillmindz2011
    Java's security model is intended to help and protect users from hostile programs downloaded from some untrusted resource within a network through sandbox. It allows all the Java programs to run inside the sandbox only and prevents many activities from untrusted resources including reading or writing to the local disk, creating any new process or even loading any new dynamic library while calling a native method.
    {{ DiscussionBoard.errors[11045145].message }}
  • Profile picture of the author timexer
    I was told that PHP is slowly fading out. That's it's not really used as often as is used to be... Maybe because of security ?
    {{ DiscussionBoard.errors[11047302].message }}

Trending Topics