A staple in Scala scenario based coding interview questions, be prepared to answer this one.   Scala import provides a number of flexibilities. We can exclude certain classes while importing the whole package: import com.xyz.abc.{Abc => _, _} // excluding the class Abc Also, it’s possible while importing that we can rename the existing classes.  import com.xyz.abc.{Abc => Pqr, _} // renaming the class Abc