Explain the access modifiers available in scala?
Answer / Ravi Shankar Tiwary
Scala provides four access modifiers: 'private' (only accessible within the defining class), 'protected' (accessible within the defining class and subclasses), 'public' (default, accessible anywhere), and 'package' (accessible within the same package).
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a monad in scala? Explain
What do you mean by scala map?
Why Scala is better than Java? What are the advantages of Scala over Java (Java 8)? Compare to Java What are the major advantages or benefits of Scala?
What is list in scala collection?
How do you prove that by default, Case Object is Serializable and Normal Object is not?
What are the differences between Case class and Normal Class?
Explain the operators in scala?
What is exception propagation in scala?
What are the Advantages of Functional Programming (FP) or Advantages of Pure Functions?
What is scala programming used for?
Explain extractors in scala?
What does raw method in scala string interpolation?