Some doubts about security

Source: Internet
Author: User
Some questions about security
Java for network and distributed environments must be protected from virus intrusion. Java does not support pointers, and all access to memory must be implemented through the object's instance variables, which prevents programmers from using "Trojan" Trojans and other deceptive means to access the object's private Members , but also avoids errors that are easily generated by pointer manipulation.

See here I have some do not understand, ' Trojan horse and other deception means to access the private members of the object ' is how a principle, do not know PHP has this disadvantage. Still, this is a previous loophole. Java PHP


------Solution--------------------
Eval is evil that's how it came from.

Actually, it's just an alibi, there is nothing.
------Solution--------------------
This should be a mechanism within the language. But I don't really understand the meaning of that sentence.

You instantiate an object that is in an address in memory, and in CPP you can point directly at the address with a pointer. But what's the use? So I can access the private members of that object?

So in PHP or Java, I can clone that object, or directly create a reference to that object. In my opinion, this is no different from pointing the pointer directly to that object.
------Solution--------------------
PHP and Java are very similar in OOP

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.