Skip to main content

Posts

Showing posts from May, 2017

Scala - Scalable Language

Scala, short for Scalable Language- •             Created by Martin Odersky •             Is object-oriented & functional Programming language •             Scala runs on the JVM Installations •             Install Java •             Set Your Java Environment. Ex- JAVA_HOME, PATH, etc •             Install Scala •             After installation, verify version by typing on command prompt or shell >scala –version >java –version If you have a good understanding on Java, then it will be very easy for you to learn Scala. But, we would again describe basics as below – Object - Have states and behaviors. Ex- A dog is black Color (State) and it is honest (behavior) than Humans Class – Behaviors & states can be defined in a template. This template is your class. For example – Class “Living Being” defines state Legs and various Objects can have different states 0, 1, 2, 3 or 4 Legs. Methods – It is basically a behavior. It is in methods where the log