Some posts from this thread were moved to: Java standard
You can observe the difference yourself: in the former, name is a pointer that points to the first character of a string literal; in the latter, name is an array of 6 char.Originally Posted by sumit180288