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