- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Can I use existing Java code from Scala?
Created by admin on 2008-07-28.
Updated: 2008-07-28, 16:47
Accessing Java classes from Scala code is no problem at all. Using a Scala class from Java can get tricky, in particular if your Scala class uses advanced features like generics, polymorphic methods, or abstract types. Since Java doesn't have such language features, you have to know something about the encoding scheme of Scala classes. Otherwise, there should be no problems.