+ 3

difference between string and array relation in c++ and java.

c++ and java seems a lot similar but the strings really have a different kind of character in each. i am having problem with manupulating these. please help me with either one for both. thankyou.

11th Jan 2017, 12:27 PM
prabin
prabin - avatar
1 Odpowiedź
+ 1
While C++ has pointers Java doesn't. Thats why you can manipulate a String in C++ even with a char pointer. The Java String is an object which can be formed to a char array aswell. But the point is that Java does make a little difference in that.ö and C++ doesnt check anything.
11th Jan 2017, 1:41 PM
Andreas K
Andreas K - avatar