---
title: "What is the difference between java and c++?"  
description: "What is the difference between java and c++?"  
author: "Sumit Kesarwani"  
published: 2014-02-10  
updated: 2020-09-15  
canonical: https://www.mindstick.com/interview/1916/what-is-the-difference-between-java-and-c-plus-plus  
category: "mysql"  
tags: ["mysql"]  
reading_time: 1 minute  

---

# What is the difference between java and c++?

Java is a true object - oriented language while c++ is basically c with object-oriented extension.

C++ supports multiple inheritence but Java provides interfaces in case of multiple inheritence.

Java does not support operator overloading.

Java does not have template classes as in c++.

java does not use pointers.

## Answers

### Answer by Sumit Kesarwani

Java is a true object - oriented language while c++ is basically c with object-oriented extension.

C++ supports multiple inheritence but Java provides interfaces in case of multiple inheritence.

Java does not support operator overloading.

Java does not have template classes as in c++.

java does not use pointers.


---

Original Source: https://www.mindstick.com/interview/1916/what-is-the-difference-between-java-and-c-plus-plus

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
