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


Why Scala does NOT have 'static' keyword? What is the main reason for this decision?



Why Scala does NOT have 'static' keyword? What is the main reason for this decision?..

Answer / Kunal Sinha

The 'static' keyword in Java is used to define class variables and methods that belong to the class level, not an instance. Scala opted to avoid using this keyword because it encourages functional programming and discourages global state.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

Explain the main difference between List and Stream in Scala Collection API? How do we prove that difference? When do we choose Stream?

1 Answers  


What is try catch in scala?

1 Answers  


What is Extractor in Scala? What is the difference between Constructor and Extractor in Scala? What is the use of Extractor in Scala?

1 Answers  


What is ‘scala trait’ in scala?

1 Answers  


Explain operator and Explain types of operators in scala?

1 Answers  


How does yield work in scala?

1 Answers  


What is the use of 'object' keyword in Scala? How to create Singleton objects in Scala?

1 Answers  


What is Scala?

1 Answers  


What are the Scala variables?

1 Answers  


How to create arrays in scala?

1 Answers  


What do you mean by a case class in scala?

1 Answers  


Does Scala support all Functional Programming concepts? Does Java 8 support all Functional Programming concepts?

1 Answers  


Categories