What is default access modifier in Scala?Does Scala have 'public' keyword?
Answer / Sushant Panigrahi
The default access modifier in Scala for classes, objects, and members is `package private`, which means they are accessible within the package only. However, for methods, constructors, and fields declared outside of any class or object, the default access level is `public`. Yes, Scala does have a 'public' keyword, but it is used to explicitly declare that a member should be accessible from everywhere, including other packages.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the scope provided for variables in scala.
What is a companion object in scala?
What is a applicative?
Mention the difference between an object and a class ?
What is repl in scala?
What is a stream 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?
What companies use scala?
Describe loops in scala?
What is an Higher-Order Function (HOF)?
Explain how scala is both functional and object-oriented programming language?
What is 'Type Inference' in Scala?