Difference between Scala’s Inner class and Java’s Inner class?
Answer / Pintu Bharti
Scala inner classes can be defined within methods, while Java inner classes are restricted to being defined at the top level of a class or interface. In addition, Scala allows for nested classes with different access levels (private, protected, and public), whereas Java only allows for private and static nested classes.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why Scala does NOT have 'static' keyword? What is the main reason for this decision?
Explain any five string methods?
Explain que?
How does yield work in scala?
What are streams in scala?
What is the difference between statically typed and dynamically typed languages?
What is the best Code-coverage tool available for Play and Scala based applications?
What are the differences between Array and ArrayBuffer in Scala?
What is formula tail in scala?
Explain the operators in scala?
What is the default unit and functional testing framework for play? What is the default build tool for play? What is the default template engine for play? What is the built-in web server available in
What is Monad in Scala?