---
title: "Can anybody elaborate the difference between “Char” and “String” at Java"  
description: "Can anybody elaborate the difference between “Char” and “String” at Java"  
author: "Lady Bird Johnson"  
published: 2013-10-14  
updated: 2013-10-14  
canonical: https://www.mindstick.com/forum/1652/can-anybody-elaborate-the-difference-between-char-and-string-at-java  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# Can anybody elaborate the difference between “Char” and “String” at Java

I can't understand which is the [difference](https://www.mindstick.com/articles/157114/good-news-or-bad-news-and-the-difference-is) between the [variable](https://www.mindstick.com/articles/1807/objective-c-data-types-variables-object-creation) type "char" and "[string](https://www.mindstick.com/articles/1527/string-split-in-c-sharp)". For example, there is a difference between "[int](https://www.mindstick.com/forum/159137/how-to-convert-date-int-to-date-in-sql)" and "short", the bytes at the [memory](https://www.mindstick.com/blog/300050/what-causes-sudden-memory-loss) and the area of numbers that they have.

But what is the difference between "char" and "string"? Expect that "char" use (') and "string" (").

## Replies

### Reply by Kate Smith

char is one character. String is zero or more characters.

char is a primitive type. The string is a class.


---

Original Source: https://www.mindstick.com/forum/1652/can-anybody-elaborate-the-difference-between-char-and-string-at-java

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
