HomeSelenium

Selenium Interview Question 53 – What is the purpose of using Wrapper classes in Java?

Selenium Interview Question 53 – What is the purpose of using Wrapper classes in Java?

<<Previous Question       <<1500 Plus Interview Questions>>       Next Question>>

What is the purpose of using Wrapper classes in Java?

Watch the answer for this Selenium Interview Question in a detailed manner in the below youtube video:

Note: Don’t forget to subscribe to my Youtube channel here: Click here

Notes used for explanation in this Youtube video are provided after the video:

Notes used in the above Youtube Video:

All the things in Java are object-oriented in nature except the following primitive data types:

  1. byte
  2. short
  3. int
  4. long
  5. float
  6. double
  7. char
  8. boolean

Java has been using these non-object oriented primitive data types with an intention of overcoming the performance issues which may occur by using objects for simple operations.

But there are some situations where we have to use these primitive data types as Objects in Java.

For using the primitive data types as Objects in Java, Java is providing the following Wrapper classes which can cover the primitive data types to the corresponding objects.

  1. Byte
  2. Short
  3. Integer
  4. Long
  5. Float
  6. Double
  7. Character
  8. Boolean

Next Steps:

  • > For more Selenium Interview Questions and answers, continue to the next post (Click on Next Post link below)
  • > Check complete Selenium Interview Questions list here (Click here)

Please leave your questions/comments/feedback below.

Happy Learning ?

About Me > Arun Motoori

<<Previous Question       <<1500 Plus Interview Questions>>       Next Question>>

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *

For FREE Testing Tutorials & Videos

X
Open chat
Contact Us on Whatsapp