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 is a flatmap in scala?

1 Answers  


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  


In what ways Scala is better than other programming language?

1 Answers  


How to implement interfaces in Scala?

1 Answers  


What is an auxiliary constructor?

1 Answers  


Describe loops in scala?

1 Answers  


What is an object in scala?

1 Answers  


Mention the types of variables in scala?

1 Answers  


What is tail recursion in scala?

1 Answers  


Explain the difference between array and list in scala?

1 Answers  


What is a singleton object in scala?

1 Answers  


Why should I learn scala?

1 Answers  


Categories