当前位置:网站首页>Scala environment construction
Scala environment construction
2022-07-19 01:46:00 【Hyf 。】
Scala and Java Compare
scala be based on JVM, and Java Fully compatible with , It also has cross platform 、 Good portability 、 Convenient garbage collection and other features .
scala Than Java Face plus object-oriented .
scala It's a functional programming language .
scala More suitable for big data processing
scala It has very good support for collection type data processing .
scala For the bottom layer of scala To write
Scala Language features
scala It's a door to Java virtual machine (JVM) A statically typed programming language that is a runtime environment and combines the best features of object-oriented and functional programming ( Static languages need to be compiled in advance, such as :java、c、c++ etc. , Dynamic languages such as :js).
1)Scala It's a multi paradigm programming language ,Scala Support for object-oriented and functional programming .( Multiple paradigm , It means a variety of programming methods . There are process oriented 、 object-oriented 、 Generic 、 There are four programming methods of functional expression .)
2)Scala Source code (.scala) Will be compiled into java Bytecode (.class), Then run on JVM above , And can call the existing Java Class library , Realize the seamless docking of two languages .
3)Scala Just as a language , Very simple and efficient .
4)Scala In design , Martin ODEs is a reference Java Design idea , so to speak Scala It's from Java, At the same time, Martin odes also joined his own thoughts , Integrate the features of functional programming language into Java in , So for those who have studied Java Classmate , Just learning Scala In the process of , Make clear Scala and Java Similarities and differences , You can quickly master Scala This language .
Scala Environment building
1) Installation steps
(1) First, make sure JDK.1.8 Installation successful

(2) Download the corresponding Scala The installation files scala-2.12.11.zip
Scala 2.12.11 | The Scala Programming Language (scala-lang.org) Download from the official website
(3) decompression scala-2.12.11.zip
Unzip it into its corresponding path
(4) To configure Scala Environment variables of
Modify in advanced configuration
Be careful : The path cannot contain Chinese


test Scala Is the installation successful
In the command line, we can write some Scala Code .
Test number addition, subtraction and multiplication

Output test of English letters 
sign out Scala The current command line
Enter the command
:quit
边栏推荐
猜你喜欢
随机推荐
Common methods of JS array
红日靶场2
基于开源流批一体数据同步引擎ChunJun数据还原—DDL解析模块的实战分享
Today's codefarmer girl summed up the notes on the difference between the method of jQuery processing cache and the method of event delegation
大数据开源项目,一站式全自动化全生命周期运维管家ChengYing(承影)走向何方?
ipfs挂载到本地磁盘
4 搜索插入位置
2022.7.7 summary of some errors
15 设计电影租借系统
Uni canvas intercepts pictures
Namenode and secondarynamenode
05_回顾Object.defineProperty
文章不会一直保持VIP收费 过一段时间 会开放
Es optional chain
Solve the problem that Scala cannot initialize the class of native
tp-watermark. JS web page add watermark plug-in
面试官问:Redis 突然变慢了如何排查?
Router and keep alive
Use redis - Zset to make Leaderboard
Applet swiper height

![[AHU2021校内赛] ez-injection](/img/44/644c27f86cbbc9c6630249d2111066.png)







