top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Do I need to convert Java data structures to Scala, and vice versa?

+3 votes
520 views
Do I need to convert Java data structures to Scala, and vice versa?
posted Jun 28, 2016 by Shivam Kumar Pandey

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

You do not have to convert Java data structures at all for using them in Scala. You can use them "as is". For instance, Scala classes can subclass Java classes, you can instantiate Java classes in Scala, you can access methods, fields (even if they are static), etc.

answer Jul 1, 2016 by Karthick.c
...