Scala is called scalable programming language built on the top of Java Virtual Machine. This is good for writing small programming scripts and also complex software systems. Scala runs on the standard Java platform and we can use most of the all Java libraries.
Scala Is a combinations of Functional programming language and Object Oriented Language. Scala is easy to use because its simple. Sometimes this simplicity might seems to be as complex. Everything depends on the way of you are looking at it so if you are are a Java programmer it might be easy to use Scala without putting huge effort. Ofcourse Scala is better start as a first programming language.
I still love programming in Java but now Im working on a Scala project which is using latest technology stack. Im still new to discuss about Scala but I experienced that the Scala is a really scalable and functional language.
Ill here introduce a associative map of Scala language. Semicolons are not needed in Scala and with this Map type annotations have not specified.
Above program simply creates an associative Map by mapping countries to thier capitals. First it has created Map with two key value pairs and in the second line it has been appended another key value pair and finally it has been printed. This is the simple way of creating a Map and update it. Final thing is to remember is that Map is a trait (related to Java its an interface). Ill discuss later the differences between Traits and Java Interfaces.
Scala Is a combinations of Functional programming language and Object Oriented Language. Scala is easy to use because its simple. Sometimes this simplicity might seems to be as complex. Everything depends on the way of you are looking at it so if you are are a Java programmer it might be easy to use Scala without putting huge effort. Ofcourse Scala is better start as a first programming language.
I still love programming in Java but now Im working on a Scala project which is using latest technology stack. Im still new to discuss about Scala but I experienced that the Scala is a really scalable and functional language.
Ill here introduce a associative map of Scala language. Semicolons are not needed in Scala and with this Map type annotations have not specified.
var capital = Map("US" > "Washington", "France" > "Paris")
capital += ("Japan" > "Tokyo")
println(capital("France"))
Above program simply creates an associative Map by mapping countries to thier capitals. First it has created Map with two key value pairs and in the second line it has been appended another key value pair and finally it has been printed. This is the simple way of creating a Map and update it. Final thing is to remember is that Map is a trait (related to Java its an interface). Ill discuss later the differences between Traits and Java Interfaces.
Comments