the difference between java char and char[]

Asked 2 years ago, Updated 2 years ago, 130 views

I heard that there is also a difference between char and char [] in Java, is that true?

java char array

2022-09-22 12:20

1 Answers

Char is a data type that can contain one character, and

char [] is called array. An array is a set (or bundle?) of variables of the same type. That is, we're tying up several char data types.

This array assigns data to continuous spaces and is accessible through an index.

Note It would be great.


2022-09-22 12:20

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.