Download Scala Tutorial (PDF Version) - Tutorials Point
Download Scala Tutorial (PDF Version) - Tutorials Point
Download Scala Tutorial (PDF Version) - Tutorials Point
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Table of Content<br />
<strong>Scala</strong> <strong>Tutorial</strong> ........................................................................... 2<br />
Audience .................................................................................. 2<br />
Prerequisites ............................................................................ 2<br />
Copyright & Disclaimer Notice .................................................. 2<br />
<strong>Scala</strong> Overview ........................................................................ 8<br />
<strong>Scala</strong> is object-oriented: ............................................................................ 8<br />
<strong>Scala</strong> is functional: ..................................................................................... 8<br />
<strong>Scala</strong> is statically typed: ............................................................................ 8<br />
<strong>Scala</strong> runs on the JVM: ............................................................................. 8<br />
<strong>Scala</strong> can Execute Java Code: .................................................................. 9<br />
<strong>Scala</strong> vs Java: ........................................................................................... 9<br />
<strong>Scala</strong> Web Frameworks: ........................................................................... 9<br />
<strong>Scala</strong> Environment Setup ....................................................... 10<br />
Installing <strong>Scala</strong> on Windows: ................................................................... 10<br />
STEP (1): JAVA SETUP: ......................................................................... 10<br />
STEP (2): SCALA SETUP: ..................................................................... 10<br />
Installing <strong>Scala</strong> on Mac OS X and Linux .................................................. 11<br />
STEP (1): JAVA SETUP: ........................................................................ 11<br />
STEP (2): SCALA SETUP: ..................................................................... 11<br />
<strong>Scala</strong> Basic Syntax ................................................................ 13<br />
First <strong>Scala</strong> Program: ................................................................................ 13<br />
INTERACTIVE MODE PROGRAMMING: ............................................... 13<br />
SCRIPT MODE PROGRAMMING: .......................................................... 13<br />
Basic Syntax: ........................................................................................... 14<br />
<strong>Scala</strong> Identifiers: ...................................................................................... 15<br />
ALPHANUMERIC IDENTIFIERS ............................................................. 15<br />
OPERATOR IDENTIFIERS ..................................................................... 15<br />
MIXED IDENTIFIERS .............................................................................. 15<br />
LITERAL IDENTIFIERS ........................................................................... 15<br />
<strong>Scala</strong> Keywords: ...................................................................................... 15<br />
Comments in <strong>Scala</strong> ................................................................................. 16<br />
Blank Lines and Whitespace: .................................................................. 16<br />
Newline Characters: ................................................................................ 16<br />
<strong>Scala</strong> Packages: ...................................................................................... 16<br />
<strong>Scala</strong> Data Types ................................................................... 18<br />
<strong>Scala</strong> Basic Literals: ................................................................................ 18<br />
INTEGER LITERALS .............................................................................. 19<br />
TUTORIALS POINT<br />
Simply Easy Learning