What is the difference between CharSequence[] and a String[]?

后端 未结 7 1362
野的像风
野的像风 2020-12-24 10:32

What is the difference between CharSequence[] and String[]?

相关标签:
7条回答
  • 2020-12-24 11:10

    A CharSequence is an Interface. String is an immutable sequence of characters and implements the CharSequence interface. CharSequence[] and String[] are just arrays of CharSequence and String respectively.

    This means wherever you see CharSequence, you can pass a String object.

    0 讨论(0)
提交回复
热议问题