Keywords or Reserved words are the words in a language that are used for some internal process or represent some predefined actions. These words are therefore not allowed to use as variable names or objects. Doing this will result in a compile-time error.
The sum of p and q is :40
Scala contains following keywords:
Hello! my name is Priyankaand my age is20 My branch name is Computer Science
- Scala Tutorial – Learn Scala with Step By Step Guide
- Set in Scala | Set-2
- Set in Scala | Set-1
- Scala Map
- Scala | Either
- Scala | Product2
- Stack in Scala
- Scala Int -(x: Int) method with example
- Scala | Equals
- Scala | StringContext
- Monads in Scala
- Scala Int abs() method with example
- Scala | Product3
- Scala | Trait App
- Scala Int +(x: Int) method with example
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.