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


Difference between Scala’s Int and Java’s java.lang.Integer? What is the relationship between Int and RichInt in Scala?



Difference between Scala’s Int and Java’s java.lang.Integer? What is the relationship be..

Answer / Jeetender Pal Singh

Scala's 'Int' is an integral type, while 'java.lang.Integer' is a class representing an integer value in Java. In Scala, 'Int' is more efficient as it's an immutable primitive type. 'RichInt' is a trait that provides many useful methods for working with integers, such as comparison and arithmetic operations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What does map in scala collection?

1 Answers  


What are the Popular Scala-Based Frameworks to develop RESTful Web Services or REST API?

1 Answers  


What is the difference between a java future and a scala future?

1 Answers  


Is scala good for machine learning?

1 Answers  


Mention Some keywords which are used by Java and not required in Scala? Why Scala does not require them?

1 Answers  


Does Scala support Operator Overloading? Does Java support Operator Overloading?

1 Answers  


Explain data types in scala?

1 Answers  


What are the popular MVC frameworks for Scala Language to develop Web Applications?

1 Answers  


What is Option in Scala? What are Some and None? What is Option/Some/None Design Pattern in Scala?

1 Answers  


What is an Expression? What is a Statement? Difference between Expression and Statement?

1 Answers  


What is Case Classes?

1 Answers  


How scala is both functional and object-oriented programming language?

1 Answers  


Categories