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...


Mention the types of variables in scala?



Mention the types of variables in scala?..

Answer / Manoj

In Scala, there are three main types of variables: Val, Var, and Def. nnVal: It is a constant variable that cannot be reassigned after being initialized.nVar: It is a mutable variable that can be reassigned multiple times.nDef: It is a shortcut for lazy variables (val with a delayed initialization).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What is a collection in scala?

1 Answers  


How do you prove that by default, Case Object is Serializable and Normal Object is not?

1 Answers  


What is guard in Scala’s for-comprehension construct?

1 Answers  


What is a function named parameter in scala?

1 Answers  


What is a ‘Scala map’?

1 Answers  


Explain how to create arrays?

1 Answers  


What is the major change or update in Scala 2.12?

1 Answers  


How can you format a string?

1 Answers  


Explain any five string methods?

1 Answers  


Why do we use =(equal) operator in scala function?

1 Answers  


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

1 Answers  


List the advantages of using scala over other functional programming languages.

1 Answers  


Categories