technical skills grow

Responsive Ads Here

Saturday, October 30, 2021

Scala Programming Language Tutorial

                                                 Scala

  •  Scala is an acronym for Scalable Language .
  • Scala is a modern multi-paradigm programming language designed to express common programming patterns in a concise, elegant, and type-safe way.
  • Scala is written by Martin Odersky at EPFL.
  • Statically Typed 
  • Runs on JVM , full inter-op with Java
  • Object Oriented 
  • Functional
  • Dynamic Features 
  • Scala blends object-oriented and functional programming in a statically typed language.
  • Can be used as drop-in replacement for java
  • Mixed Scal/Java projects
  • Use existing Java libraries
  • Use existing Java tools (Maven,Junit)
  • Decent IDE Support (NetBeans, Intellij, Eclipse )

  • Part 1


  • Note :If you are not find scala library in Scala Class you have to go in Add favorite & choose Scala


  • Class : is like car method and object 
  • Scala is Case sensitive 
  • method always small 
  • Class first letter must be Capital 
  • Unite that mean no return type 
  • \r is escape senses print next line
  • \t give space 

 Part 2: Data Types and Variables:  is place holder you can use Var & Val 

   



Var : You can change value 
Val : You can not change value
Lazy Keyword : used when it is not hold memory until we can't assign a values.  

Part 3 - String Interpolation

Part 4 -  Scala - IF ELSE Statements


Part 5 - Scala while Loop and do-while Loop

Part 6 - Scala For Loop


Nested Loop




No comments:

Post a Comment

Powered by Blogger.

Labels

Contact Form

Name

Email *

Message *

Search This Blog

Blog Archive

Ad Code

Responsive Advertisement

Recent Posts