Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Like Java, what are the default imports in Scala Language?



Like Java, what are the default imports in Scala Language?..

Answer / Updesh Kumar

In Scala, there is no concept of a 'package' keyword like in Java. Instead, you can import classes and objects directly into your code using the 'import' keyword. The only implicitly imported class is scala.Predef, which includes basic types (such as Int, String, Boolean), common functions (like println), and Scala's core libraries.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

Explain the scope provided for variables in scala.

1 Answers  


What is the access modifier in scala?

1 Answers  


Is scala better than python?

1 Answers  


Explain the scala anonymous function.

1 Answers  


Explain ‘Scala higher order’ functions?

1 Answers  


What is Nothing in Scala? What is Nil in Scala? What is the relationship between Nothing and Nil in Scala?

1 Answers  


What are case classes in scala?

1 Answers  


How do we make a call to a private primary constructor in scala?

1 Answers  


What is a constructor in scala?

1 Answers  


What is bitset in scala?

1 Answers  


Is scala easy to learn?

1 Answers  


Popular clients who are using Play and Scala to develop their applications?

1 Answers  


Categories