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 is list in scala collection?
What is unapply method in scala?
What is call-by-name? Does Scala and Java support call-by-name? What is the difference between call-by-value and call-by-name function parameters?
Explain how to create arrays?
What is object in Scala? Is it a singleton object or instance of a class?
What are the Scala Features?
Why scala is faster than java?
What is Primary Constructor? What is Secondary or Auxiliary Constructor in Scala?
Difference between Scala’s Int and Java’s java.lang.Integer? What is the relationship between Int and RichInt in Scala?
What is a nexted function in scala?
What is scala best used for?
In Scala, Pattern Matching follows which Design Pattern? In Java, ‘isinstanceof’ operator follows which Design Pattern?