Programming, Scala, Data Type, Abstraction, Introduction.
println("Hello, \b World!\nThis is Scala!") Output: Hello, World! This is Scala! Type Casting: Type casting is a way to convert a variable from one data type to another data type. In Scala, value types can be cast in the following way. Example: scala> val a:Int = 100 a: Int = 100 scala> val B:Float