---
title: "What is the difference between abstraction and encapsulation?"  
description: "What is the difference between abstraction and encapsulation?"  
author: "Samuel Fernandes"  
published: 2015-04-02  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/2393/what-is-the-difference-between-abstraction-and-encapsulation  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What is the difference between abstraction and encapsulation?

abstraction hides the implementation details whereas encapsulation wraps code and data into a single unit.

## Answers

### Answer by Anonymous User

abstraction hides the implementation details whereas encapsulation wraps code and data into a single unit.


---

Original Source: https://www.mindstick.com/interview/2393/what-is-the-difference-between-abstraction-and-encapsulation

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
