In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Editor to share with you what new features of Java SE, I believe that most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!
New main features of JavaSE8
1. In order to improve the developer's work efficiency, make better use of multi-core processors and enhance the large-capacity data processing function of the Java collection APIs, the Lambda expression ("off") is introduced.
2, the original Java module system ("project Jigsaw") will simplify the construction, packaging and deployment of applications, so that a fully modular Java platform can be customized deployment on servers, customers and embedded systems.
3. JavaScript improvements on JVM, including a new JavaScript engine Nashorn optimized for JVM and comprehensive Java/JavaScript interoperability.
4. The next generation Java client in the form of JavaFX3.0. Modern device support including multi-touch function.
5. Completed HotSpot/JRockitJVM agglomeration projects, including performance enhancement and second-generation JavaFlightRecorder.
Among them, the author is most concerned about the third item, that is, the improvement of JavaScript by JVM. Its core component is the JavaScript engine Nashorn, which implements the interoperability between Java and JavaScript. The word Nashorn is similar to Rhino, which means rhinoceros in Chinese. Coincidentally, Rhino is the JavaScript engine, and its purpose is to achieve interoperability between Java and JavaScript. So what on earth is Rhino? Why is Nashorn a new generation of JavaScript engine? what are the features of Rhino? what does Rhino have to do with Java and JavaScript?
What is Rhino?
Rhino is a Java-based implementation of JavaScript that was originally developed by Mozilla and is now integrated into JDK6.0. The following two lines of code illustrate this point.
Importsun.org.mozilla.javascript.internal.Context
Importsun.org.mozilla.javascript.internal.Scriptable
Rhino means rhino in Chinese, and its name comes from the cover of O'Reilly 's book about JavaScript.
Rhino has the following characteristics:
All the features of JavaScript1.5
Allow direct manipulation of Java using scripts
Provide JavaScriptShell to execute other JavaScript scripts
Provides a JavaScript compiler to convert JavaScript source programs into Java class files
Background related to Rhino
The history of Rhino dates back to 1997. Netscape plans to develop a Java version of Navigator, or Javagator. It is the predecessor of Rhino. Although Javagator failed to blossom and bear fruit, Rhino, as Netscape's porting language to JavaScript, survived the test of time.
Nowadays, with the open source of Rhino, more and more developers are involved in the development of Rhino. With the increasing maturity of Rhino, more and more users choose to use Rhino.
These are all the contents of the article "what functions have been added to Java SE?" 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.