Core Java - Interview Questions and Answers for 'Benefits of wrapper classes over primitives' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Core Java - Interview Questions and Answers for 'Benefits of wrapper classes over primitives' - 1 question(s) found - Order By Newest

 Q1. What are the benefits of using Wrapper classes over primitive types ?Core Java2017-08-24 21:35:53

Ans. With Collection classes , we cannot use primitive types. Moreover for any class using generic types, we cannot use primitive types.

They add more functionality by means of additional methods.

As their reference can be null , they offer consistent check for uninitialized state.

They facilitate caching and reuse by means of constant Pools.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     wrapper classes  benefits of wrapper classes over primitives


Related Questions

  What are the Wrapper classes available for primitive types ?
  What are wrapper classes ?
 What is the difference between uninitialized values for primitive types and Wrapper classes ?
  Difference between boolean and Boolean ?
  Explain Autoboxing ?
  What are Wrapper Classes ? What are Primitive Wrapper Classes ?
  What Design pattern Wrapper Classes implement ?
  Will this code give error if i try to add two heterogeneous elements in the arraylist. ? and Why ?
  Can we compare Integers by using equals() in Java ?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: