All the operators in Scala are calls to methods, for example: 1+2, equivalent to (1). + (2)
0 to 5, equivalent to (0). to (5), X (1) = "Scala", equivalent to (x). Update (1, "Scala"), X (1) is equivalent to (x). Apply (1)
Scala separates static members by defining the associated object, similar to the static keyword in Java
The Scala array array has the same type for all objects, and the length of the arrays cannot be changed after instantiation, but the values of the array elements can be changed
The value of the element in the list array is immutable, the list has "::" To implement the overlay function, Operation Inode Create a new list
Scala contains a new container object tuple, which can contain several different types of objects, for example: val tp = ("Scala"), where TP is a tuple[int,int,string] object, and tp._1 represents the first element
The set and map types in Scala are both mutable and immutable, and are stored in separate packages
Scala does not have the "+ +" operator
Scala provides trait keywords that describe the nature of the object, similar to the interface in Java interface
Scala advocates a functional programming style that reduces the use of VAR variables, thus allowing for more concise and readable code
Scala reads data from a file, Source.fromfile ("filename"). Getlines () returns a iterator[string] object
Scala language differs from Java (2)