List different types of literals available in scala?
Answer / Lokesh Diwakar
In Scala, the following are the main literals: 1) Number literals (integers and floating-point numbers). 2) Boolean literals (true and false). 3) String literals (enclosed in double quotes). 4) Character literals (enclosed in single quotes). 5) Null literal (represents an empty reference to a null value).
| Is This Answer Correct ? | 0 Yes | 0 No |
Why scala prefers immutability?
What is a closure?
what are the features of scala?
What is the use of auxiliary constructors in scala? explain the rules to follow in defining auxiliary constructors in scala?
How to install scala? Explain
What is the current latest version of Scala?
What are the Java’s OOP constructs not supported by Scala? What are the Scala’s OOP constructs not supported by Java? What are the new OOPs constructs introduced by Scala, but not supported by Java?
What is the difference between :: and #:: in Scala? What is the difference between ::: and #::: in Scala?
What is the access modifier in scala?
Differentiate between null, nil, none and nothing?
What is object in Scala? Is it a singleton object or instance of a class?
What is currying in scala?