What is the access modifier in scala?
Answer / Dilshad Ahamad
Scala has four access modifiers: private (accessible only within the defining object or class), protected (accessible within the defining object or class and subclasses), public (no access modifier, accessible everywhere), and override (used to override methods in a subclass).
| Is This Answer Correct ? | 0 Yes | 0 No |
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?
What is scala option?
What is map in scala?
Which is better scala or python?
What is scala map function?
When compare to Normal Class, What are the major advantages or benefits of a Case-class?
mention the types of variables in scala? And what is the difference between them?
Can scala learn without java?
What does sortedset in scala collection?
How to create arrays in scala?
What is Either in Scala? What are Left and Right in Scala? Explain Either/Left/Right Design Pattern in Scala?
Explain the main difference between List and Stream in Scala Collection API? How do we prove that difference? When do we choose Stream?