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 |
What is scala and why it is used?
What is Option in Scala? What are Some and None? What is Option/Some/None Design Pattern in Scala?
What is the default Unit and Functional Testing Framework for Play? What is the default Build Tool for Play? What is the Default Template Engine for Play? What is the built-in Web Server available in Play Framework?
What is file handling in scala?
What is the access modifier in scala?
What are left and right in scala?
What is the best language to use with Play framework: Scala or Java?
Explain traits in scala.
What are case classes in scala?
What is the difference between Function and Method in Scala?
Explain extend keyword?
List types of identifiers available in scala?