Explain the operators in scala?
Answer / Sunil Kumar Jayasawal
In Scala, there are several categories of operators:nn- Arithmetic Operators: +, -, *, /, %, ++, --n- Comparison Operators: ==, !=, >, >=, <, <=n- Logical Operators: && (and), || (or), ! (not)n- Assignment Operators: =, +=, -=, *=, /=, %=%n- Bitwise Operators: &, |, ^, ~, <<, >>
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the differences between Array and ArrayBuffer in Scala?
Why scala prefers immutability?
How does it work under-the-hood, when we create an instance of a Class without using ‘new’ keyword in Scala? When do we go for this approach?
What do you understand by an implicit parameter in scala ?
Why Scala does NOT have 'static' keyword? What is the main reason for this decision?
What is the difference between 'val' and 'lazy val' in Scala? What is Eager Evaluation? What is Lazy Evaluation?
Explain different types of identifiers in scala?
What are throws in scala?
What are higher-order functions in scala?
What is scala option?
Explain extend keyword?
When can you use traits?