当前位置:网站首页>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
边栏推荐
- NFT IP授权热度渐起,NFT2.0时代即将到来?
- Champ de tir rouge 3
- Use redis - Zset to make Leaderboard
- MapReduce环境准备
- TCP and UDP, TCP server and client, UDP server and client
- 13 K 次取反后最大化的数组和
- 03_el与data的两种写法
- 05_ Review object defineProperty
- 06-BTC-挖矿难度
- Solve the flashing of the menu switch at the bottom of applet customization
猜你喜欢

NFT数字藏品平台有哪些?哪些平台值得珍藏?

Introduction to software vulnerability analysis (III)

let和const、let、const和var的区别

Database connection pool and serialize to realize operations such as adding, deleting, changing and querying

iptables和snort基本配置

一文盘点估值超过1亿美元的NFT项目

03 BTC agreement

Champ de tir rouge 3

Database programming (MySQL) of node, adding, deleting, modifying and querying

Nodejs cross domain CORS
随机推荐
es6语法--解构赋值
Redis suddenly slowed down?
毒瘤 DDD
数字藏品NFT那个平台好
软件漏洞分析入门(四)
红日靶场2
How to use express and how to match and use routes
ES6 map extract array object
袋鼠云数栈基于CBO在Spark SQL优化上的探索
binary search
JS higher order function filter/map/reduce
05 BTC network
05_回顾Object.defineProperty
Differences between let and const, let, const and VaR
MapReduce
07-BTC-挖矿
解决scala无法对Native进行类的初始化
ipfs 文件持久化操作
let和const、let、const和var的区别
11 错误的集合