---
title: "What are wrapper classes?"  
description: "What are wrapper classes?"  
author: "Anonymous User"  
published: 2015-05-01  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/2469/what-are-wrapper-classes  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What are wrapper classes?

Wrapper classes are classes that allow primitive types to be accessed as objects.

## Answers

### Answer by Hemant Patel

There are several advantages and disadvantages of the array in java. Advantages and Disadvantages of Array in Java are as follows:

## Advantages of the array in Java:

1. In Java, we can able to access any element randomly by using index number provided by arrays.

2. In Array, we can store many numbers of elements at a time.

3. It's fast because primitive type to wrapper classes object conversion will not happen in Array.

## Disadvantages of the array in Java:

1. In Java, Arrays are Strongly Typed.

2. In Array, we can't able to add or remove methods.

3. The array having a fixed length, we need to initialize the size of the array.

4. Due to a fixed length, there is a chance of memory wastage.

5. When we want to delete an element in the array we need to traverse throughout the array so this will reduce performance.

### Answer by Anonymous User

Wrapper classes are classes that allow primitive types to be accessed as objects.


---

Original Source: https://www.mindstick.com/interview/2469/what-are-wrapper-classes

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
