Would you use scala or Java for interviews if you've been doing scala for long, but the target company uses Java as the primary language. Assume you're equally proficient in both but need to refresh your Java chops.
Java because most interview questions are designed for java. Implementing tree or dynamic programming on Scala is difficult, especially if they are going to ask about complexity. Using Scala with immutable lists will be like this simple operation is O(n).
Scala if they accept it, it’s to your advantage to use the language you’re most familiar with
Whatever you're more comfortable with for algo questions. Don't worry about impressing the interviewers
>Scala or Java? Python
using Scala to resolve a graph problem might be tricky.
Scala will add you some brownie points