In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what .NET and Java mean, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Brief introduction
Net is a new software running platform launched by J Microsoft, which includes a set of technologies with a wide range of applications, aiming at the challenges brought by ava. Net brings a lot of new technologies to rapid development framework development, especially its "mixed language" development mode, which is the first software running platform to support multi-language mixed development. The core of the next generation of Windows--LongHorn will see .NET. If the reader has studied Java, then you will find that .NET and Java are very much alike. In particular, if I give you a piece of code, it is sometimes difficult to tell whether it is written in Java or C #.
Java is an object-oriented language born in the nineties of last century. It absorbs many advantages of C++, and its biggest feature is "cross-platform". Because it well meets the requirements of high-level language for information systems in the network era, it has been widely used in practice. After nearly a decade of development, Java has occupied a mainstream position in the field of enterprise information system development, formed a complete set of technical system, and achieved great success.
Architecture of the platform
The JAVA platform includes Java language, and a set of virtual machines-- such as JVM, KVM, CVM, etc.-- use them to run JAVA bytecode on PCs, laptops or embedded systems. At the same time, the JAVA platform also defines a wide range of API, which are used to coordinate or compete with Microsoft's API. Such as JDBC to ODBC,JTAPI, TAPI,JDO to ADO, and so on. So, in a nutshell, the JAVA platform includes languages, virtual machines, and API libraries. Because of the virtual machine mechanism, the JAVA language has a unique version on all platforms, so it uses the RMI protocol for remote communication, while Microsoft's use of DCOM-- in the .NET Framework is gradually evolving into SOAP. SUN initially promoted JAVA as "one-time code, run in all environments", but had to withdraw its initial promotion after the launch of "J2EE" and "J2ME" because the solution of "one size shoes for all feet" didn't work very well.
The .NET Framework includes a range of languages such as Cellular, VB.NET and C #; a runtime environment similar to the JAVA virtual machine; and an API interface that tends to be WINDOWS. The runtime environment may exist in a browser, or a WEB SERVER, or in the operating system. Such a runtime environment may also exist in SQL SERVER in the future. Another thing to mention is Microsoft's SOAP protocol, which is developed on the basis of inheriting some features of DCOM and transmitted through HTTP based on XML format.
Encryption: an introduction
Net encryption is mainly based on CryptoAPI and related extensions. Most of the classes related to encryption are in System.security.Cryptography, X509Centificates and XML. .net uses a stream-based model to complete encrypted transmissions, and all algorithms default to the highest level of security. Net also allows users to define their own algorithms in machine.config. The encryption algorithm of JAVA platform is divided into two parts: Java Cryptography Architecture and Java Cryptography Extension. The export of JCE is restricted by relevant laws. If you want to use the user's own encryption algorithm, you must be certified by the authentication body.
Encryption: algorithm
Net for the rapid development framework mainly provides the following categories of encryption algorithms: asymmetric algorithm, HASH algorithm, symmetric algorithm, random number generation method. JAVA provides more encryption algorithms, but fewer third-party vendors can provide their own algorithms in JAVA.
Security configuration
Both platforms are configured through XML or plain text files, and the biggest difference between the two platforms lies in the way they handle the security configuration system. On the. Net platform, there are two ways to modify security configuration parameters: graphical interface and command line. Mscorcfg.msc is a graphical interface, and Caspol.exe provides a command-line mode for batch processing or configuration text. The JAVA platform only provides policytool.exe, a tool for graphical interface. Unlike .NET, the name and location of its target object (configuration file) are not fixed. .net defines different ranges of security profiles: system-wide, native-scoped, and local-user-scoped. When there is a conflict in the configuration, in principle, a small range of parameters have priority. The core configuration files of JAVA and J2EE are kept in a fixed location, but the extended configuration files vary from manufacturer to manufacturer.
Secure communication
SSL is already the industry standard for de facto transmission security. Both JAVA and .NET support the latest version of SSL 3.0.
Secure communication: platform
.net only uses SSL to protect HTTP transfers in IIS-based applications, and .NET cannot protect data in transit for non-IIS applications. In JAVA, JSSE provides platform-level services to ensure the security of TCP/IP-based communications. Apart from IIS,.NET, there is no standard solution for communication protection at the platform level, but JAVA provides a full range of solutions in this regard.
Secure communications: application
.net provides the latest security assurance for WEB services through WSA and WSE packages, and JAVA currently does not provide this support. There is not much difference between JAVA and .NET in terms of encryption methods; JAVA provides more options than .NET in terms of communication protection; but JAVA obviously lags behind .NET in terms of WEB service security.
Code encapsulation: verifying
Both JAVA and. Net Common Library Runtime implement memory security or type safety protection mechanisms, and the security of applications developed on these platforms can also be verified. Their implementation mechanisms are very different. In .NET, CLR always executes compiled code, which does not interpret the code. However, before the intermediate language is compiled, the compiler will have steps of verification and verification. The first step is to check the structure and code integrity of the file; the second step includes some extended checks, memory security, stack trace, data flow analysis, type checking, and so on. During the run time, VES is responsible for security checks and handling of unexpected error situations. On the JAVA platform, the JAVA virtual machine (JVM) is responsible for class loading, linking, verification, and execution. For code that has been compiled and optimized, JVM also uses two unconditional call stacks to retain the original bytecode information.
Code encapsulation: application isolation
In .NET, domain isolation is based on memory security mechanism, and different domains cannot directly access each other's address space, but can only be accessed through .NET remote communication mechanism. In JAVA platform, application isolation is realized through the combination of ClassLoaders and ProtectionDomains, and security class loading is the cornerstone of JVM security mechanism. The .NET AppDomains is like an operating system process, which is more direct and easier to use than JAVA's ProtectionDomains.
Code encapsulation: language features
The two platforms are basically the same, and .NET is slightly better in terms of flexibility.
Course of development
JAVA originally originated from SUN's language designed for set-top boxes, which was renamed by OAK,SUN and placed on INTERNET as open source sharing. With the emergence of JAVA APPLET, which is specially designed for web pages, JAVA language is rapidly becoming popular on INTERNET. At that time, the browser was mainly NETSCAPE. When Microsoft discovered that tomorrow's market might be dominated by browsers rather than desktops, it began to buy NETSCAPE, and Microsoft developed its own browser IE after the acquisition failed. At that time, INTERNET needed a language, and JAVA appeared at the right time. Because of its similar syntax to C++, many programmers turned to JAVA. And it does have so many advantages that in the fall of 1998, its opponent Microsoft declared in MSDN that JAVA was the best language for writing COM components. Along with JAVA are the LINUX operating system and the APACHE server. The combination of the three shows great power in the server-side application, so that WINDOWS NT has suffered a great impact in the enterprise server market.
look into the future
Now, we can see that it is still a very chaotic situation. In the future, we will see the maturity of .NET and its integration with JAVA. JAVA will continue to maintain its characteristics: cross-platform server-side applications, such as WAP servers, or telecommunications applications such as JAIN, while it will continue to maintain its advantages in embedded systems, such as smart cards, mobile phones, PDA and so on. We will also see the maturity of .NET, which, of course, will take time, perhaps for a long time, just as JAVA grew up.
Non-Microsoft products, including. Net interfaces for server, desktop or portable operating systems such as Solaris, Linux and Palm OS. Integration with the JAVA core. VES engine integrated in database products such as SQL SERVER or ORACLE. Open source, complete. Net platform developed by a neutral third party. It is expected that Microsoft will sponsor some open source projects to extend .NET to the UNIX platform, which will help some open source organizations reduce their preference for JAVA.
The above is all the content of the article "what does .NET and Java mean?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.