1.

What are Wrapper classes ? Given any two examples.

Answer»

A wrapper class wraps around a data type and gives it an object appearance. Wherever, the data type is required as an object, this object can be used. Wrapper classes include type methods to unwrap the object and give back the data type.

e.g., Integer, Boolean



Discussion

No Comment Found

Related InterviewSolutions