试题详情
单项选择题设字符串变量str1="abc";str2="defg";则str1.compareTo(str2)的返回值为()

A、2

B、-3

C、3

D、-2

  • B
  • 关注下方微信公众号,在线模考后查看

热门试题